Interface IAsyncStreamWriter<T> (2.48.0)

public interface IAsyncStreamWriter<in T>

A writable stream of messages.

Namespace

Grpc.Core

Assembly

Grpc.Core.Api.dll

Type Parameter

NameDescription
T

The message type.

Properties

WriteOptions

WriteOptions WriteOptions { get; set; }

Write options that will be used for the next write. If null, default options will be used. Once set, this property maintains its value across subsequent writes.

Property Value
TypeDescription
WriteOptions

Methods

WriteAsync(T)

Task WriteAsync(T message)

Writes a message asynchronously. Only one write can be pending at a time.

Parameter
NameDescription
messageT

The message to be written. Cannot be null.

Returns
TypeDescription
Task