protected void AddDomainEvent(IDomainEvent @event, long originalVersion = -1) { ValidateVersion(originalVersion); @event.BuildVersion(_version + 1); ApplyEvent(@event, @event.AggregateVersion); _uncommittedEvents.Add(@event); }