init
This commit is contained in:
commit
ab2e20f7e1
72 changed files with 2000 additions and 0 deletions
13
Femto.Common/Domain/IDomainEvent.cs
Normal file
13
Femto.Common/Domain/IDomainEvent.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
using MediatR;
|
||||
|
||||
namespace Femto.Common.Domain;
|
||||
|
||||
public interface IDomainEvent : INotification
|
||||
{
|
||||
public Guid EventId { get; }
|
||||
}
|
||||
|
||||
public abstract record DomainEvent : IDomainEvent
|
||||
{
|
||||
public Guid EventId { get; } = Guid.NewGuid();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue