16 lines
336 B
C#
16 lines
336 B
C#
using MediatR;
|
|
|
|
namespace ZeroFramework.DeviceCenter.Domain.Entities
|
|
{
|
|
public interface IDomainEvents
|
|
{
|
|
IReadOnlyCollection<INotification> DomainEvents { get; }
|
|
|
|
void AddDomainEvent(INotification eventItem);
|
|
|
|
void RemoveDomainEvent(INotification eventItem);
|
|
|
|
void ClearDomainEvents();
|
|
}
|
|
}
|