public T OnNotification <TParams>(string method, Action <TParams, CancellationToken> handler, JsonRpcHandlerOptions?options = null) { return(OnNotification(method, HandlerAdapter.Adapt(handler), options)); }
public T OnNotification <TParams>(string method, Func <TParams, Task> handler, JsonRpcHandlerOptions?options = null) { return(OnNotification(method, HandlerAdapter.Adapt(handler), options)); }
public T OnRequest <TParams, TResponse>(string method, Func <TParams, Task <TResponse> > handler, JsonRpcHandlerOptions?options = null) { return(OnRequest(method, HandlerAdapter.Adapt(handler), options)); }
public T OnJsonNotification(string method, Action <JToken> handler, JsonRpcHandlerOptions?options = null) { return(OnJsonNotification(method, HandlerAdapter.Adapt(handler), options)); }
public T OnJsonRequest(string method, Func <JToken, Task <JToken> > handler, JsonRpcHandlerOptions?options = null) { return(OnJsonRequest(method, HandlerAdapter.Adapt(handler), options)); }
public T OnNotification <TParams>(string method, Action <TParams> handler, JsonRpcHandlerOptions?options = null) => OnNotification <TParams>(method, HandlerAdapter.Adapt(handler), options);
public T OnJsonNotification(string method, Func <JToken, Task> handler, JsonRpcHandlerOptions?options = null) => OnJsonNotification(method, HandlerAdapter.Adapt(handler), options);
public T OnJsonNotification(string method, Action <JToken, CancellationToken> handler, JsonRpcHandlerOptions?options = null) => OnJsonNotification(method, HandlerAdapter.Adapt(handler), options);
public T OnRequest <TParams>(string method, Func <TParams, Task> handler, JsonRpcHandlerOptions?options = null) => OnRequest <TParams>(method, HandlerAdapter.Adapt(handler), options);