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);
private SystemSettings GetSystemSettings() { var res = _indexReader.ReadEvent(SystemStreams.SettingsStream, -1); return(res.Result == ReadEventResult.Success ? DeserializeSystemSettings(res.Record.Data) : null); }
IndexReadEventResult IReadIndex <TStreamId> .ReadEvent(string streamName, TStreamId streamId, long eventNumber) { return(_indexReader.ReadEvent(streamName, streamId, eventNumber)); }