Example #1
0
 IndexReadEventResult IReadIndex.ReadEvent(string streamId, long eventNumber)
 {
     return(_indexReader.ReadEvent(streamId, eventNumber));
 }
		public static IndexReadEventResult ReadEvent(this IIndexReader<string> index, string streamName, long eventNumber) =>
			index.ReadEvent(streamName, streamName, eventNumber);
Example #3
0
        private SystemSettings GetSystemSettings()
        {
            var res = _indexReader.ReadEvent(SystemStreams.SettingsStream, -1);

            return(res.Result == ReadEventResult.Success ? DeserializeSystemSettings(res.Record.Data) : null);
        }
Example #4
0
 IndexReadEventResult IReadIndex <TStreamId> .ReadEvent(string streamName, TStreamId streamId, long eventNumber)
 {
     return(_indexReader.ReadEvent(streamName, streamId, eventNumber));
 }