Click or drag to resize
AsyncStreamExtensionsToListAsyncT Method
Reads the entire stream and creates a list containing all the elements read.

Namespace: Grpc.Core.Utils
Assembly: Grpc.Core (in Grpc.Core.dll) Version: 0.7.0.0
Syntax
public static Task<List<T>> ToListAsync<T>(
	this IAsyncStreamReader<T> streamReader
)
where T : class

Parameters

streamReader
Type: Grpc.CoreIAsyncStreamReaderT

[Missing <param name="streamReader"/> documentation for "M:Grpc.Core.Utils.AsyncStreamExtensions.ToListAsync``1(Grpc.Core.IAsyncStreamReader{``0})"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Grpc.Core.Utils.AsyncStreamExtensions.ToListAsync``1(Grpc.Core.IAsyncStreamReader{``0})"]

Return Value

Type: TaskListT

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAsyncStreamReaderT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also