Click or drag to resize

QueuedMessageReaderReadDirectAsync Method

[This is preliminary documentation and is subject to change.]

When overridden in the derived class, directly asynchronously reads the next message.

Namespace:  JsonRpc.Streams
Assembly:  JsonRpc.Streams (in JsonRpc.Streams.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
protected abstract Task<Message> ReadDirectAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: System.ThreadingCancellationToken
A token that cancels the operation OR indicates the current instance has just been disposed.

Return Value

Type: TaskMessage
The message just read, or null if EOF has reached.
Exceptions
ExceptionCondition
OperationCanceledExceptionThe operation has been canceled.
Remarks
The caller has guaranteed there is at most 1 ongoing call of this method.
See Also