public async Task <ReadAllPage> ReadAllForwards( long fromPositionInclusive, int maxCount, bool prefetchJsonData = true, CancellationToken cancellationToken = default) { var client = CreateClient(); client = await client.RootAsync( LinkFormatter.ReadAllForwards(fromPositionInclusive, maxCount, prefetchJsonData), cancellationToken); return(ReadAllForwardsInternal(client, prefetchJsonData)); }
public async Task <ReadAllPage> ReadAllForwards( long fromPositionInclusive, int maxCount, bool prefetchJsonData = true, CancellationToken cancellationToken = default) { Ensure.That(fromPositionInclusive, nameof(fromPositionInclusive)).IsGte(0); Ensure.That(maxCount, nameof(maxCount)).IsGte(1); GuardAgainstDisposed(); var client = CreateClient(); client = await client.RootAsync( LinkFormatter.ReadAllForwards(fromPositionInclusive, maxCount, prefetchJsonData), cancellationToken); return(ReadAllForwardsInternal(client, prefetchJsonData)); }