CodeGenHelpers.CreateAsyncEnumerableProxy<T> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
StreamJsonRpc.ProxyGeneration.AsyncEnumerableProxy`1
public static System.Collections.Generic.IAsyncEnumerable<T> CreateAsyncEnumerableProxy<T> (System.Threading.Tasks.Task<System.Collections.Generic.IAsyncEnumerable<T>> enumerableTask, System.Threading.CancellationToken defaultCancellationToken);
static member CreateAsyncEnumerableProxy : System.Threading.Tasks.Task<System.Collections.Generic.IAsyncEnumerable<'T>> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'T>
Public Shared Function CreateAsyncEnumerableProxy(Of T) (enumerableTask As Task(Of IAsyncEnumerable(Of T)), defaultCancellationToken As CancellationToken) As IAsyncEnumerable(Of T)
類型參數
- T
參數
- enumerableTask
- Task<IAsyncEnumerable<T>>
- defaultCancellationToken
- CancellationToken