Show / Hide Table of Contents

Class AsyncStreamReaderExtensions

Extension methods for IAsyncStreamReader<T>.

Inheritance
System.Object
AsyncStreamReaderExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Grpc.Core
Assembly: Grpc.Core.Api.dll
Syntax
public static class AsyncStreamReaderExtensions

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
System.Threading.Tasks.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.

Back to top