Ejemplo n.º 1
0
 public Task <ReadAllPage> Invoke(IStreamStore streamStore, CancellationToken ct)
 => ReadDirection == Constants.ReadDirection.Forwards
         ? streamStore.ReadAllForwards(_fromPositionInclusive, _maxCount, EmbedPayload, ct)
         : streamStore.ReadAllBackwards(_fromPositionInclusive, _maxCount, EmbedPayload, ct);
Ejemplo n.º 2
0
 public Task <ReadAllPage> ReadAllBackwards(long fromPositionInclusive, int maxCount, bool prefetchJsonData = true,
                                            CancellationToken cancellationToken = new CancellationToken())
 {
     return(_store.ReadAllBackwards(fromPositionInclusive, maxCount, prefetchJsonData, cancellationToken));
 }