IW4M-Admin/SharedLibraryCore/Events/CoreEvent.cs

13 lines
346 B
C#
Raw Normal View History

2023-04-05 10:54:57 -04:00
using System;
namespace SharedLibraryCore.Events;
public abstract class CoreEvent
{
public Guid Id { get; } = Guid.NewGuid();
public Guid? CorrelationId { get; init; }
public object Source { get; init; }
public DateTimeOffset CreatedAt { get; } = DateTimeOffset.UtcNow;
public DateTimeOffset? ProcessedAt { get; set; }
}