Share via


DelimitedMessageHandler.ReadCoreAsync(CancellationToken) Method

Definition

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

protected abstract System.Threading.Tasks.Task<string> ReadCoreAsync (System.Threading.CancellationToken cancellationToken);
abstract member ReadCoreAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Protected MustOverride Function ReadCoreAsync (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 message. A null string indicates the stream has ended. An empty string should never be returned.

Applies to