public IDomainEvent Append(IDomainEvent e) { e.SetNumber(_aggregateEventNumberTracker.AllocateNextEventNumberFor(e.AggregateTopicName)); _mongoCollection.InsertOne(new PersistedEvent(e)); return(e); }