Aracılığıyla paylaş


JsonRpcExtensions.WithJsonRpcSettings<T> Yöntem

Tanım

StreamJsonRpc'nin öğelerini uzak tarafa nasıl göndereceğini özelleştiren ayarlarla süsler 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ür Parametreleri

T

Sıra tarafından numaralandırılan öğenin türü.

Parametreler

enumerable
IAsyncEnumerable<T>

Süslenecek numaralandırılabilir.

settings
JsonRpcEnumerableSettings

Bu numaralandırılabilir ile ilişkilendirilecek ayarlar.

Döndürülenler

Düzenlenmiş numaralandırılabilir örnek.

Şunlara uygulanır