Click or drag to resize

AspNetCoreRpcServerHandlerProcessRequestAsync Method (RequestMessage, HttpContext, Boolean)

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

Processes the specified JSON-RPC request with certain HttpContext, and returns the response.

Namespace:  JsonRpc.AspNetCore
Assembly:  JsonRpc.AspNetCore (in JsonRpc.AspNetCore.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
public Task<ResponseMessage> ProcessRequestAsync(
	RequestMessage message,
	HttpContext context,
	bool waitForNotification
)

Parameters

message
Type: JsonRpc.MessagesRequestMessage
The message to be processed.
context
Type: HttpContext
The HTTP request context.
waitForNotification
Type: SystemBoolean
Whether to wait for the handler for the notification request to finish before completing the task.

Return Value

Type: TaskResponseMessage
The JSON-RPC response, or null if there's no such response.
Exceptions
ExceptionCondition
ArgumentNullExceptionEither message or context is null.
Remarks

This method will enable IAspNetCoreFeature in invoked JSON RPC service handler.

This method will use RequestAborted as cancellation token passed into RequestContext.

See Also