Click or drag to resize

IJsonRpcBuilderIntercept Method

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

Adds a middleware to intercept the JSON RPC requests.

Namespace:  JsonRpc.AspNetCore
Assembly:  JsonRpc.AspNetCore (in JsonRpc.AspNetCore.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
IJsonRpcBuilder Intercept(
	Func<RequestHandler, RequestHandler> middleware
)

Parameters

middleware
Type: SystemFuncRequestHandler, RequestHandler
The middleware to be added.

Return Value

Type: IJsonRpcBuilder
Remarks

If there are multiple calls to this method, the handler generated by the first applied middleware will be the fist to receive the request.

Usually [!:Intercept(Func<RequestContext,Func<Task>,Task>)] is preferred to this overload.

See Also