Пример #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());
 }