Click or drag to resize
AsyncStreamExtensionsWriteAllAsyncT Method (IServerStreamWriterT, IEnumerableT)
Writes all elements from given enumerable to the stream.

Namespace: Grpc.Core.Utils
Assembly: Grpc.Core (in Grpc.Core.dll) Version: 0.6.1.0
Syntax
public static Task WriteAllAsync<T>(
	this IServerStreamWriter<T> streamWriter,
	IEnumerable<T> elements
)
where T : class

Parameters

streamWriter
Type: Grpc.CoreIServerStreamWriterT

[Missing <param name="streamWriter"/> documentation for "M:Grpc.Core.Utils.AsyncStreamExtensions.WriteAllAsync``1(Grpc.Core.IServerStreamWriter{``0},System.Collections.Generic.IEnumerable{``0})"]

elements
Type: System.Collections.GenericIEnumerableT

[Missing <param name="elements"/> documentation for "M:Grpc.Core.Utils.AsyncStreamExtensions.WriteAllAsync``1(Grpc.Core.IServerStreamWriter{``0},System.Collections.Generic.IEnumerable{``0})"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Grpc.Core.Utils.AsyncStreamExtensions.WriteAllAsync``1(Grpc.Core.IServerStreamWriter{``0},System.Collections.Generic.IEnumerable{``0})"]

Return Value

Type: Task

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IServerStreamWriterT. 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