語言

JsonRpcExtensions.WithJsonRpcSettings<T> 方法

定義

用設定來裝飾 StreamJsonRpc IAsyncEnumerable<T> 如何將物品傳送給遠端方。

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

與此可枚舉物件相關的設定。

傳回

裝飾可枚舉實例。

適用於