Interface Pager<TItem>
- Namespace
- Auth0.ManagementApi.Core
- Assembly
- Auth0.ManagementApi.dll
A collection of values that may take multiple service requests to iterate over.
public interface Pager<TItem> : IAsyncEnumerable<TItem>
Type Parameters
TItemThe type of the values.
- Inherited Members
- Extension Methods
Properties
CurrentPage
Get the current Page<TItem>.
Page<TItem> CurrentPage { get; }
Property Value
- Page<TItem>
HasNextPage
Indicates whether there is a next page.
bool HasNextPage { get; }
Property Value
Methods
AsPagesAsync(CancellationToken)
Enumerate the values a Page<TItem> at a time. This may make multiple service requests.
IAsyncEnumerable<Page<TItem>> AsPagesAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
- IAsyncEnumerable<Page<TItem>>
An async sequence of Page<TItem>s.
GetNextPageAsync(CancellationToken)
Get the next Page<TItem>.
Task<Page<TItem>> GetNextPageAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
- Task<Page<TItem>>
The next Page<TItem>.