JsonRpcExtensions.WithJsonRpcSettings<T> 方法

定义

使用 IAsyncEnumerable<T> 自定义 StreamJsonRpc 如何将项目发送到远程方的设置进行修饰。

public static System.Collections.Generic.IAsyncEnumerable<T> WithJsonRpcSettings<T> (this System.Collections.Generic.IAsyncEnumerable<T> enumerable, StreamJsonRpc.JsonRpcEnumerableSettings? settings);
static member WithJsonRpcSettings : System.Collections.Generic.IAsyncEnumerable<'T> * StreamJsonRpc.JsonRpcEnumerableSettings -> System.Collections.Generic.IAsyncEnumerable<'T>
<Extension()>
Public Function WithJsonRpcSettings(Of T) (enumerable As IAsyncEnumerable(Of T), settings As JsonRpcEnumerableSettings) As IAsyncEnumerable(Of T)

类型参数

T

序列枚举的元素的类型。

参数

enumerable
IAsyncEnumerable<T>

要修饰的枚举。

settings
JsonRpcEnumerableSettings

要与此可枚举关联的设置。

返回

修饰的可枚举实例。

适用于