Interface BiPager<TItem>
- Namespace
- Auth0.ManagementApi.Core
- Assembly
- Auth0.ManagementApi.dll
Interface for implementing pagination in two directions.
public interface BiPager<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
HasPreviousPage
Indicates whether there is a previous page.
bool HasPreviousPage { get; }
Property Value
Methods
GetNextPageAsync(CancellationToken)
Get the next Page<TItem>.
Task<Page<TItem>> GetNextPageAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
- Task<Page<TItem>>
The next Page<TItem>.
GetPreviousPageAsync(CancellationToken)
Get the previous Page<TItem>.
Task<Page<TItem>> GetPreviousPageAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
- Task<Page<TItem>>
The previous Page<TItem>.