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