Table of Contents

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

TItem

The 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

bool

HasPreviousPage

Indicates whether there is a previous page.

bool HasPreviousPage { get; }

Property Value

bool

Methods

GetNextPageAsync(CancellationToken)

Get the next Page<TItem>.

Task<Page<TItem>> GetNextPageAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<Page<TItem>>

The next Page<TItem>.

GetPreviousPageAsync(CancellationToken)

Get the previous Page<TItem>.

Task<Page<TItem>> GetPreviousPageAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<Page<TItem>>

The previous Page<TItem>.