DelimitedMessageHandler.WriteAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes a message to the stream.
public System.Threading.Tasks.Task WriteAsync (string content, System.Threading.CancellationToken cancellationToken);
member this.WriteAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function WriteAsync (content As String, cancellationToken As CancellationToken) As Task
Parameters
- content
- String
The message to write.
- cancellationToken
- CancellationToken
A token to cancel the transmission.
Returns
A task that represents the asynchronous write operation.