Share via


DelimitedMessageHandler.ReadAsync(CancellationToken) Method

Definition

Reads a distinct and complete message from the stream, waiting for one if necessary.

public System.Threading.Tasks.Task<string> ReadAsync (System.Threading.CancellationToken cancellationToken);
member this.ReadAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function ReadAsync (cancellationToken As CancellationToken) As Task(Of String)

Parameters

cancellationToken
CancellationToken

A token to cancel the read request.

Returns

A task whose result is the received messages.

Applies to