[]
When overridden in an inherited class it returns the items in the page as well as a token to the next page.
protected abstract Task<Tuple<int, IReadOnlyList<T>>> GetPageAsync(int pageIndex, int startingIndex, int count, IReadOnlyList<SortDescription>? sortDescriptions = null, FilterExpression? filterExpression = null, CancellationToken cancellationToken = default)
Type | Name | Description |
---|---|---|
int | pageIndex | The index of the requesting page. |
int | startingIndex | The index where the returned items will be inserted. |
int | count | The number of items to be returned. |
IReadOnlyList<SortDescription> | sortDescriptions | The sort descriptions. |
FilterExpression | filterExpression | The filter expression. |
CancellationToken | cancellationToken | Cancellation token. |
Type | Description |
---|---|
Task<Tuple<int, IReadOnlyList<T>>> | A tuple containing the items and a total number of items. |