Method StreamAsync
StreamAsync<TItem>(HubStream<TItem>, CancellationToken)
Invokes a streaming method on the server and returns the streamed items. The stream is started when enumeration begins and is cancelled when the
enumeration is disposed or the cancellation token is cancelled.
Declaration
public IAsyncEnumerable<TItem> StreamAsync<TItem>(HubStream<TItem> stream, CancellationToken cancellationToken = default)
Parameters
Returns
Type Parameters
StreamAsync<T1, TItem>(HubStream<T1, TItem>, T1, CancellationToken)
Invokes a streaming method on the server and returns the streamed items. The stream is started when enumeration begins and is cancelled when the
enumeration is disposed or the cancellation token is cancelled.
Declaration
public IAsyncEnumerable<TItem> StreamAsync<T1, TItem>(HubStream<T1, TItem> stream, T1 arg1, CancellationToken cancellationToken = default)
Parameters
Returns
Type Parameters
| Name |
Description |
| T1 |
|
| TItem |
|
StreamAsync<T1, T2, TItem>(HubStream<T1, T2, TItem>, T1, T2, CancellationToken)
Invokes a streaming method on the server and returns the streamed items. The stream is started when enumeration begins and is cancelled when the
enumeration is disposed or the cancellation token is cancelled.
Declaration
public IAsyncEnumerable<TItem> StreamAsync<T1, T2, TItem>(HubStream<T1, T2, TItem> stream, T1 arg1, T2 arg2, CancellationToken cancellationToken = default)
Parameters
Returns
Type Parameters
| Name |
Description |
| T1 |
|
| T2 |
|
| TItem |
|
StreamAsync<T1, T2, T3, TItem>(HubStream<T1, T2, T3, TItem>, T1, T2, T3, CancellationToken)
Invokes a streaming method on the server and returns the streamed items. The stream is started when enumeration begins and is cancelled when the
enumeration is disposed or the cancellation token is cancelled.
Declaration
public IAsyncEnumerable<TItem> StreamAsync<T1, T2, T3, TItem>(HubStream<T1, T2, T3, TItem> stream, T1 arg1, T2 arg2, T3 arg3, CancellationToken cancellationToken = default)
Parameters
Returns
Type Parameters
| Name |
Description |
| T1 |
|
| T2 |
|
| T3 |
|
| TItem |
|