JsonRpcExtensions.WithJsonRpcSettings<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.