Example #1
0
 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());
 }
Example #2
0
 public EventStore(IPersister persister, ICommitDispatcher commitDispatcher)
 {
     _persister = persister;
     _commitDispatcher = commitDispatcher;
 }
 public CommitDispatchingPipelineHook(ICommitDispatcher commitDispatcher)
 {
     _commitDispatcher = commitDispatcher;
 }