public static IDisposable ReceiveRpcRequest <T>(this IBusConnection connection, IRpcHandler <T> handler) { return(connection.ReceiveRpcRequest <T>(handler.HandleAsync)); }
public static IDisposable ReceiveRpcRequest <T>(this IBusConnection connection, string requestName, Func <T, Action <object>, Task> handler) { return(connection.ReceiveRpcRequest(requestName, x => x.On(handler))); }
public static IDisposable ReceiveRpcRequest <T>(this IBusConnection connection, Func <T, Action <object>, Task> handler) { return(connection.ReceiveRpcRequest(GetMessageName(typeof(T)), x => x.On(handler))); }
public void RegisterEndpoints(IBusConnection connection) { connection.ReceiveRpcRequest(ExtApiNames.RpcGetData, x => x.On <ExtApiDataRequest>(HandleDataRequestAsync)); }