MessageFormatterEnumerableTracker.CreateEnumerableProxy<T> 方法

定义

使用者用来构造实现 IAsyncEnumerable<T> 并从远程生成器获取其所有值的代理。

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)

类型参数

T

由可枚举生成的值的类型。

参数

handle
Object

生成器指定的句柄,用于获取更多值或释放枚举器。 可能 null 表示不会再有值。

prefetchedItems
IReadOnlyList<T>

可枚举句柄中包含的项列表。

返回

枚举器。

适用于