mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 23:31:13 -05:00
implement new eventing system
This commit is contained in:
12
SharedLibraryCore/Events/CoreEvent.cs
Normal file
12
SharedLibraryCore/Events/CoreEvent.cs
Normal file
@ -0,0 +1,12 @@
|
||||
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; }
|
||||
}
|
Reference in New Issue
Block a user