示例#1
0
        protected EventStreamRevision(EventStreamRevisionIdentity identity, EventProviderVersion version)
        {
            Contract.Requires(identity != null);
            Contract.Requires(version != null);

            _identity = identity;
            _version  = version;
        }
示例#2
0
        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;
        }
示例#3
0
 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);
 }