Exemplo n.º 1
0
 public void Handle(ICollection <IDomainEvent> uncommittedEvents)
 {
     foreach (var uncommittedEvent in uncommittedEvents)
     {
         var @event = EventDataFactory.Create(uncommittedEvent);
         _db.Insert(@event, "Events");
     }
 }