Class AsyncStreamReaderExtensions
Extension methods for IAsyncStreamReader<T>.
Inheritance
System.Object
AsyncStreamReaderExtensions
Namespace: Grpc.Core
Assembly: Grpc.Core.Api.dll
Syntax
public static class AsyncStreamReaderExtensions : object
Methods
MoveNext<T>(IAsyncStreamReader<T>)
Advances the stream reader to the next element in the sequence, returning the result asynchronously.
Declaration
public static Task<bool> MoveNext<T>(this IAsyncStreamReader<T> streamReader)
where T : class
Parameters
Type | Name | Description |
---|---|---|
IAsyncStreamReader<T> | streamReader | The stream reader. |
Returns
Type | Description |
---|---|
Task<System.Boolean> | Task containing the result of the operation: true if the reader was successfully advanced to the next element; false if the reader has passed the end of the sequence. |
Type Parameters
Name | Description |
---|---|
T | The message type. |