Click or drag to resize

JsonRpcClientSendAsync Method

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

Asynchronously send a JSON RPC request or notification message.

Namespace:  JsonRpc.Client
Assembly:  JsonRpc.Commons (in JsonRpc.Commons.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
public virtual Task<ResponseMessage> SendAsync(
	RequestMessage request,
	CancellationToken cancellationToken
)

Parameters

request
Type: JsonRpc.MessagesRequestMessage
The request message to be sent.
cancellationToken
Type: System.ThreadingCancellationToken
A token used to cancel the operation.

Return Value

Type: TaskResponseMessage
A task contains the response of the request, or that contains null if the specified request does not need a response.
Exceptions
ExceptionCondition
ArgumentNullExceptionrequest is null.
ArgumentExceptionA request with the same id has been sent. You need to try with a different id.
OperationCanceledException(Can be TaskCanceledException.) The operation has been cancelled.
See Also