JsonRpcExtensions.AsAsyncEnumerable 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.
Overloads
AsAsyncEnumerable<T>(IEnumerable<T>) |
Converts an IEnumerable<T> to IAsyncEnumerable<T> so it will be streamed over an RPC connection progressively instead of as an entire collection in one message. |
AsAsyncEnumerable<T>(IEnumerable<T>, JsonRpcEnumerableSettings) |
Converts an IEnumerable<T> to IAsyncEnumerable<T> so it will be streamed over an RPC connection progressively instead of as an entire collection in one message. |
AsAsyncEnumerable<T>(IEnumerable<T>, CancellationToken) |
Converts an IEnumerable<T> to IAsyncEnumerable<T> so it will be streamed over an RPC connection progressively instead of as an entire collection in one message. |
AsAsyncEnumerable<T>(IEnumerable<T>, JsonRpcEnumerableSettings, CancellationToken) |
Converts an IEnumerable<T> to IAsyncEnumerable<T> so it will be streamed over an RPC connection progressively instead of as an entire collection in one message. |
AsAsyncEnumerable<T>(IEnumerable<T>)
Converts an IEnumerable<T> to IAsyncEnumerable<T> so it will be streamed over an RPC connection progressively instead of as an entire collection in one message.
public static System.Collections.Generic.IAsyncEnumerable<T> AsAsyncEnumerable<T> (this System.Collections.Generic.IEnumerable<T> enumerable);
static member AsAsyncEnumerable : seq<'T> -> System.Collections.Generic.IAsyncEnumerable<'T>
<Extension()>
Public Function AsAsyncEnumerable(Of T) (enumerable As IEnumerable(Of T)) As IAsyncEnumerable(Of T)
Type Parameters
- T
The type of element enumerated by the sequence.
Parameters
- enumerable
- IEnumerable<T>
The enumerable to be converted.
Returns
The async enumerable instance.
Applies to
AsAsyncEnumerable<T>(IEnumerable<T>, JsonRpcEnumerableSettings)
Converts an IEnumerable<T> to IAsyncEnumerable<T> so it will be streamed over an RPC connection progressively instead of as an entire collection in one message.
public static System.Collections.Generic.IAsyncEnumerable<T> AsAsyncEnumerable<T> (this System.Collections.Generic.IEnumerable<T> enumerable, StreamJsonRpc.JsonRpcEnumerableSettings? settings);
static member AsAsyncEnumerable : seq<'T> * StreamJsonRpc.JsonRpcEnumerableSettings -> System.Collections.Generic.IAsyncEnumerable<'T>
<Extension()>
Public Function AsAsyncEnumerable(Of T) (enumerable As IEnumerable(Of T), settings As JsonRpcEnumerableSettings) As IAsyncEnumerable(Of T)
Type Parameters
- T
The type of element enumerated by the sequence.
Parameters
- enumerable
- IEnumerable<T>
The enumerable to be converted.
- settings
- JsonRpcEnumerableSettings
The settings to associate with this enumerable.
Returns
The async enumerable instance.
Applies to
AsAsyncEnumerable<T>(IEnumerable<T>, CancellationToken)
Converts an IEnumerable<T> to IAsyncEnumerable<T> so it will be streamed over an RPC connection progressively instead of as an entire collection in one message.
public static System.Collections.Generic.IAsyncEnumerable<T> AsAsyncEnumerable<T> (this System.Collections.Generic.IEnumerable<T> enumerable, System.Threading.CancellationToken cancellationToken);
static member AsAsyncEnumerable : seq<'T> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'T>
<Extension()>
Public Function AsAsyncEnumerable(Of T) (enumerable As IEnumerable(Of T), cancellationToken As CancellationToken) As IAsyncEnumerable(Of T)
Type Parameters
- T
The type of element enumerated by the sequence.
Parameters
- enumerable
- IEnumerable<T>
The enumerable to be converted.
- cancellationToken
- CancellationToken
A cancellation token.
Returns
The async enumerable instance.
Applies to
AsAsyncEnumerable<T>(IEnumerable<T>, JsonRpcEnumerableSettings, CancellationToken)
Converts an IEnumerable<T> to IAsyncEnumerable<T> so it will be streamed over an RPC connection progressively instead of as an entire collection in one message.
public static System.Collections.Generic.IAsyncEnumerable<T> AsAsyncEnumerable<T> (this System.Collections.Generic.IEnumerable<T> enumerable, StreamJsonRpc.JsonRpcEnumerableSettings? settings, System.Threading.CancellationToken cancellationToken);
static member AsAsyncEnumerable : seq<'T> * StreamJsonRpc.JsonRpcEnumerableSettings * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'T>
<Extension()>
Public Function AsAsyncEnumerable(Of T) (enumerable As IEnumerable(Of T), settings As JsonRpcEnumerableSettings, cancellationToken As CancellationToken) As IAsyncEnumerable(Of T)
Type Parameters
- T
The type of element enumerated by the sequence.
Parameters
- enumerable
- IEnumerable<T>
The enumerable to be converted.
- settings
- JsonRpcEnumerableSettings
The settings to associate with this enumerable.
- cancellationToken
- CancellationToken
A cancellation token.
Returns
The async enumerable instance.