コード例 #1
0
        public AggregateRepository(IEventStore eventStore, IAggregateRootAtomicAction atomicAction, IIntegrityPolicy <EventStream> integrityPolicy)
        {
            if (eventStore is null)
            {
                throw new ArgumentNullException(nameof(eventStore));
            }
            if (atomicAction is null)
            {
                throw new ArgumentNullException(nameof(atomicAction));
            }
            if (integrityPolicy is null)
            {
                throw new ArgumentNullException(nameof(integrityPolicy));
            }

            this.eventStore      = eventStore;
            this.atomicAction    = atomicAction;
            this.integrityPolicy = integrityPolicy;
        }
コード例 #2
0
ファイル: AggregateRepository.cs プロジェクト: lulzzz/Cronus
 public AggregateRepository(IEventStore eventStore, IAggregateRootAtomicAction atomicAction, IIntegrityPolicy <EventStream> integrityPolicy)
 {
     this.eventStore      = eventStore;
     this.atomicAction    = atomicAction;
     this.integrityPolicy = integrityPolicy;
 }