public void ProcessMultiple(IEnumerable <DomainEventBase> events) { EventStore.Store(events); foreach (var @event in events) { EventStored?.Invoke(this, new EventStoredArgs(@event)); } }
public void Replay(DomainEventBase e) { EventStored?.Invoke(this, new EventStoredArgs(e)); }
public T Process <T>(T e) where T : DomainEventBase { EventStore.Store(e); EventStored?.Invoke(this, new EventStoredArgs(e)); return(e); }