public void Remove(INotificationEto eventItem) { lock (collection) { collection.Remove(eventItem); } }
public void Add(INotificationEto eventItem) { lock (collection) { collection.Add(eventItem); } }
public void RemoveDomainEvent(INotificationEto eventItem) { domainEventStore?.Remove(eventItem); }
public void AddDomainEvent(INotificationEto eventItem) { domainEventStore ??= new Collection <INotificationEto>(); domainEventStore?.Add(eventItem); }