JsonRpcExtensions.AsAsyncEnumerable 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AsAsyncEnumerable<T>(IEnumerable<T>) |
转换到一个 IEnumerable<T> 对象 IAsyncEnumerable<T> ,以便通过 RPC 连接逐步流式传输,而不是在一条消息中作为整个集合进行流式传输。 |
AsAsyncEnumerable<T>(IEnumerable<T>, JsonRpcEnumerableSettings) |
转换到一个 IEnumerable<T> 对象 IAsyncEnumerable<T> ,以便通过 RPC 连接逐步流式传输,而不是在一条消息中作为整个集合进行流式传输。 |
AsAsyncEnumerable<T>(IEnumerable<T>, CancellationToken) |
转换到一个 IEnumerable<T> 对象 IAsyncEnumerable<T> ,以便通过 RPC 连接逐步流式传输,而不是在一条消息中作为整个集合进行流式传输。 |
AsAsyncEnumerable<T>(IEnumerable<T>, JsonRpcEnumerableSettings, CancellationToken) |
转换到一个 IEnumerable<T> 对象 IAsyncEnumerable<T> ,以便通过 RPC 连接逐步流式传输,而不是在一条消息中作为整个集合进行流式传输。 |
AsAsyncEnumerable<T>(IEnumerable<T>)
转换到一个 IEnumerable<T> 对象 IAsyncEnumerable<T> ,以便通过 RPC 连接逐步流式传输,而不是在一条消息中作为整个集合进行流式传输。
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)
类型参数
- T
序列枚举的元素的类型。
参数
- enumerable
- IEnumerable<T>
要转换的枚举。
返回
异步可枚举实例。
适用于
AsAsyncEnumerable<T>(IEnumerable<T>, JsonRpcEnumerableSettings)
转换到一个 IEnumerable<T> 对象 IAsyncEnumerable<T> ,以便通过 RPC 连接逐步流式传输,而不是在一条消息中作为整个集合进行流式传输。
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)
类型参数
- T
序列枚举的元素的类型。
参数
- enumerable
- IEnumerable<T>
要转换的枚举。
- settings
- JsonRpcEnumerableSettings
要与此可枚举关联的设置。
返回
异步可枚举实例。
适用于
AsAsyncEnumerable<T>(IEnumerable<T>, CancellationToken)
转换到一个 IEnumerable<T> 对象 IAsyncEnumerable<T> ,以便通过 RPC 连接逐步流式传输,而不是在一条消息中作为整个集合进行流式传输。
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)
类型参数
- T
序列枚举的元素的类型。
参数
- enumerable
- IEnumerable<T>
要转换的枚举。
- cancellationToken
- CancellationToken
取消标记。
返回
异步可枚举实例。
适用于
AsAsyncEnumerable<T>(IEnumerable<T>, JsonRpcEnumerableSettings, CancellationToken)
转换到一个 IEnumerable<T> 对象 IAsyncEnumerable<T> ,以便通过 RPC 连接逐步流式传输,而不是在一条消息中作为整个集合进行流式传输。
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)
类型参数
- T
序列枚举的元素的类型。
参数
- enumerable
- IEnumerable<T>
要转换的枚举。
- settings
- JsonRpcEnumerableSettings
要与此可枚举关联的设置。
- cancellationToken
- CancellationToken
取消标记。
返回
异步可枚举实例。