JsonRpcExtensions.WithJsonRpcSettings<T> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用 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
要与此可枚举关联的设置。
返回
修饰的可枚举实例。