IRpcServer.registerRequestHandler

Register a delegate to be called on reception of a request matching 'method'.

interface IRpcServer(TId, TRequest, TResponse)
void
registerRequestHandler
(
string method
,
RpcRequestHandler!(TRequest, TResponse) handler
)
if (
is(TRequest : IRpcRequest!TId) &&
is(TResponse : IRpcResponse)
)

Parameters

method string

The RPC method to match.

handler RpcRequestHandler!(TRequest, TResponse)

The delegate to call.

Meta