protected EventStreamRevision(EventStreamRevisionIdentity identity, EventProviderVersion version) { Contract.Requires(identity != null); Contract.Requires(version != null); _identity = identity; _version = version; }
public DomainEventRevision(EventStreamRevisionIdentity identity, EventProviderVersion version, IReadOnlyCollection <IDomainEvent> domainEvents) : base(identity, version) { Contract.Requires(identity != null); Contract.Requires(version != null); Contract.Requires(domainEvents != null); _domainEvents = domainEvents; }
public DomainEventRevision(EventStreamRevisionIdentity identity, EventProviderVersion version, IDomainEvent domainEvent) : this(identity, version, new Collection <IDomainEvent> { domainEvent }) { Contract.Requires(identity != null); Contract.Requires(version != null); Contract.Requires(domainEvent != null); }