Share via


JsonRpcExtensions.WithJsonRpcSettings<T> Method

Definition

Decorates an IAsyncEnumerable<T> with settings that customize how StreamJsonRpc will send its items to the remote party.

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)

Type Parameters

T

The type of element enumerated by the sequence.

Parameters

enumerable
IAsyncEnumerable<T>

The enumerable to be decorated.

settings
JsonRpcEnumerableSettings

The settings to associate with this enumerable.

Returns

The decorated enumerable instance.

Applies to