Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }