コード例 #1
0
ファイル: EventStream.cs プロジェクト: darkiri/CQRS.Sample
 public EventStream(IPersister persister, ICommitDispatcher dispatcher, Guid streamId, int revision)
 {
     _persister = persister;
     _dispatcher = dispatcher;
     StreamId = streamId;
     
     PopulateStream(_persister.GetCommits(StreamId, 0, revision).SelectMany(c => c.Events).ToList());
 }
コード例 #2
0
ファイル: EventStore.cs プロジェクト: darkiri/CQRS.Sample
 public EventStore(IPersister persister, ICommitDispatcher commitDispatcher)
 {
     _persister = persister;
     _commitDispatcher = commitDispatcher;
 }
 public CommitDispatchingPipelineHook(ICommitDispatcher commitDispatcher)
 {
     _commitDispatcher = commitDispatcher;
 }