Condividi tramite


MessageFormatterEnumerableTracker.CreateEnumerableProxy<T> Metodo

Definizione

Usato dal consumer per costruire un proxy che implementa IAsyncEnumerable<T> e ottiene tutti i relativi valori da un generatore remoto.

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)

Parametri di tipo

T

Tipo di valore prodotto dall'enumerabile.

Parametri

handle
Object

Handle specificato dal generatore usato per ottenere più valori o eliminare l'enumeratore. Potrebbe essere null indicare che non ci saranno più valori.

prefetchedItems
IReadOnlyList<T>

Elenco di elementi inclusi nell'handle enumerabile.

Restituisce

Enumeratore.

Si applica a