 | JsonRpcServiceHostBuilderIntercept Method (FuncRequestContext, FuncTask, Task) |
[This is preliminary documentation and is subject to change.]
Adds a handler to intercept the JSON RPC requests.
Namespace:
JsonRpc.Server
Assembly:
JsonRpc.Commons (in JsonRpc.Commons.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntaxpublic void Intercept(
Func<RequestContext, Func<Task>, Task> handler
)
Public Sub Intercept (
handler As Func(Of RequestContext, Func(Of Task), Task)
)
Dim instance As JsonRpcServiceHostBuilder
Dim handler As Func(Of RequestContext, Func(Of Task), Task)
instance.Intercept(handler)
public:
void Intercept(
Func<RequestContext^, Func<Task^>^, Task^>^ handler
)
member Intercept :
handler : Func<RequestContext, Func<Task>, Task> -> unit
Parameters
- handler
- Type: SystemFuncRequestContext, FuncTask, Task
The handler to be added.
Remarks
If there are multiple calls to this method, the last handler applied will be
the fist to receive the request.
See Also