Click or drag to resize

QueuedMessageReaderReadAsync Method

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

Asynchronously reads the next message that matches the

Namespace:  JsonRpc.Streams
Assembly:  JsonRpc.Streams (in JsonRpc.Streams.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
public override Task<Message> ReadAsync(
	Predicate<Message> filter,
	CancellationToken cancellationToken
)

Parameters

filter
Type: SystemPredicateMessage
The expected type of the message.
cancellationToken
Type: System.ThreadingCancellationToken
A token that cancels the operation.

Return Value

Type: TaskMessage
The next JSON RPC message, or null if no more messages exist.
Exceptions
ExceptionCondition
ArgumentNullExceptionfilter is null.
OperationCanceledExceptionThe operation has been canceled.
Remarks
This method should be thread-safe.
See Also