Click or drag to resize

IJsonRpcServiceHostInvokeAsync Method

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

Invokes the JSON RPC method.

Namespace:  JsonRpc.Server
Assembly:  JsonRpc.Commons (in JsonRpc.Commons.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
Task<ResponseMessage> InvokeAsync(
	RequestMessage request,
	IFeatureCollection features,
	CancellationToken cancellationToken
)

Parameters

request
Type: JsonRpc.MessagesRequestMessage
The JSON RPC request.
features
Type: JsonRpc.ServerIFeatureCollection
The features provided along with the request. Use null to indicate default features set.
cancellationToken
Type: System.ThreadingCancellationToken
The token used to cancel the request.

Return Value

Type: TaskResponseMessage
JSON RPC response, or null for JSON RPC notifications.
Exceptions
ExceptionCondition
ArgumentNullExceptionrequest is null.
Remarks
For cancelled requests, no exception will be thrown, but a response containing OperationCanceledException CLR exception will be returned.
See Also