Click or drag to resize

AspNetCoreRpcServerHandlerProcessRequestAsync Method (RequestMessage, HttpContext)

[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
)

Parameters

message
Type: JsonRpc.MessagesRequestMessage
The message to be processed.
context
Type: HttpContext
The HTTP request context.

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.

This overload do not wait for the JSON-RPC response if the request is a notification message.

See Also