Interface IAsyncStreamWriter<T>
A writable stream of messages.
Namespace: Grpc.Core
Assembly: Grpc.Core.dll
Syntax
public interface IAsyncStreamWriter<T>
Type Parameters
| Name | Description |
|---|---|
| T | The message type. |
Properties
WriteOptions
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.
Declaration
WriteOptions WriteOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| WriteOptions |
Methods
WriteAsync(T)
Writes a single asynchronously. Only one write can be pending at a time.
Declaration
Task WriteAsync(T message)
Parameters
| Type | Name | Description |
|---|---|---|
| T | message | the message to be written. Cannot be null. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |