Share via


MessageFormatterEnumerableTracker.CreateEnumerableProxy<T> Method

Definition

Used by the consumer to construct a proxy that implements IAsyncEnumerable<T> and gets all its values from a remote generator.

public System.Collections.Generic.IAsyncEnumerable<T> CreateEnumerableProxy<T> (object? handle, System.Collections.Generic.IReadOnlyList<T>? prefetchedItems);
member this.CreateEnumerableProxy : obj * System.Collections.Generic.IReadOnlyList<'T> -> System.Collections.Generic.IAsyncEnumerable<'T>
Public Function CreateEnumerableProxy(Of T) (handle As Object, prefetchedItems As IReadOnlyList(Of T)) As IAsyncEnumerable(Of T)

Type Parameters

T

The type of value that is produced by the enumerable.

Parameters

handle
Object

The handle specified by the generator that is used to obtain more values or dispose of the enumerator. May be null to indicate there will be no more values.

prefetchedItems
IReadOnlyList<T>

The list of items that are included with the enumerable handle.

Returns

The enumerator.

Applies to