Ejemplo n.º 1
0
 public IDomainEvent Append(IDomainEvent e)
 {
     e.SetNumber(_aggregateEventNumberTracker.AllocateNextEventNumberFor(e.AggregateTopicName));
     _mongoCollection.InsertOne(new PersistedEvent(e));
     return(e);
 }