 | 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
Syntaxprotected abstract Task<Message> ReadDirectAsync(
CancellationToken cancellationToken
)
Protected MustOverride Function ReadDirectAsync (
cancellationToken As CancellationToken
) As Task(Of Message)
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of Message)
returnValue = Me.ReadDirectAsync(cancellationToken)
protected:
virtual Task<Message^>^ ReadDirectAsync(
CancellationToken cancellationToken
) abstract
abstract ReadDirectAsync :
cancellationToken : CancellationToken -> Task<Message>
Parameters
- cancellationToken
- Type: System.ThreadingCancellationToken
A token that cancels the operation OR indicates the current instance has just been disposed.
Return Value
Type:
TaskMessageThe message just read, or
null if EOF has reached.
Exceptions
RemarksThe caller has guaranteed there is at most 1 ongoing call of this method.
See Also