IW4M-Admin/SharedLibraryCore/Events/CoreEvent.cs
2023-04-05 09:54:57 -05:00

13 lines
346 B
C#

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; }
}