Udostępnij za pośrednictwem


PagedEnumerableExtensions Class

Definition

Provides a set of static (Shared in Visual Basic) methods for working with sequences that implement IPagedEnumerable<T>.

public static class PagedEnumerableExtensions
type PagedEnumerableExtensions = class
Public Module PagedEnumerableExtensions
Inheritance
PagedEnumerableExtensions

Methods

ForEachAsync<T>(IPagedEnumerable<T>, Action<T>, CancellationToken)

Iterates over an IPagedEnumerable<T> sequence, invoking a synchronous delegate for each element.

ForEachAsync<T>(IPagedEnumerable<T>, Func<T,CancellationToken,Task>, CancellationToken)

Iterates over an IPagedEnumerable<T> sequence, invoking an asynchronous delegate for each element.

ForEachAsync<T>(IPagedEnumerable<T>, Func<T,Task>, CancellationToken)

Iterates over an IPagedEnumerable<T> sequence, invoking an asynchronous delegate for each element.

ToListAsync<T>(IPagedEnumerable<T>, CancellationToken)

Creates a List<T> from an IPagedEnumerable<T>.

Applies to