public void Apply(IDomainEvent domainEvent) { Contract.Assume(domainEvent != null); _revisions.Add(new DomainEventRevision(CreateRevisionIdentity(), EventStream.GetNextVersion(), domainEvent)); }
public void Apply(IReadOnlyCollection <IDomainEvent> domainEvents) { Contract.Assume(domainEvents != null); _revisions.Add(new DomainEventRevision(CreateRevisionIdentity(), EventStream.GetNextVersion(), domainEvents)); }