| IAsyncStreamReaderT Interface |
On the client side, the last invocation of MoveNext() either returns false if the call has finished successfully or throws RpcException if call finished with an error. Once the call finishes, subsequent invocations of MoveNext() will continue yielding the same result (returning false or throwing an exception).
On the server side, MoveNext() does not throw exceptions. In case of a failure, the request stream will appear to be finished (MoveNext will return false) and the CancellationToken associated with the call will be cancelled to signal the failure.
Namespace: Grpc.Core
The IAsyncStreamReaderT type exposes the following members.
| Name | Description | |
|---|---|---|
| Current | (Inherited from IAsyncEnumeratorT.) |
| Name | Description | |
|---|---|---|
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
| MoveNext | (Inherited from IAsyncEnumeratorT.) |
| Name | Description | |
|---|---|---|
| ForEachAsyncT |
Reads the entire stream and executes an async action for each element.
(Defined by AsyncStreamExtensions.) | |
| ToListAsyncT |
Reads the entire stream and creates a list containing all the elements read.
(Defined by AsyncStreamExtensions.) |