public void SetJsonRPCFail(string path, JSONRPCController.ActionRPCFail action) { if (onHttpEvents.ContainsKey(path) == false) { onHttpEvents[path] = new JSONRPCController(); } var jsonc = onHttpEvents[path] as JSONRPCController; jsonc.SetFailAction(action); }
public void AddJsonRPC(string path, string method, JSONRPCController.ActionRPC action) { if (onHttpEvents.ContainsKey(path) == false) { onHttpEvents[path] = new JSONRPCController(); } var jsonc = onHttpEvents[path] as JSONRPCController; jsonc.AddAction(method, action); }