Inheritance: IRpcHandler
Ejemplo n.º 1
0
        /**
         * Registers an XML-RPC service as a Brunet Rpc handler.
         * @param handler_name the namespace used to register the handler with
         * RpcManager.
         * @param uri the URI at which the XML-RPC service could be accessed.
         */
        public void AddXRHandler(string handler_name, string uri)
        {
            XmlRpcHandler handler = new XmlRpcHandler(uri, _node);

            _rpc.AddHandler(handler_name, handler);
            _registered_xmlrpc.Add(handler_name, uri);
        }
Ejemplo n.º 2
0
 /**
  * Registers an XML-RPC service as a Brunet Rpc handler.
  * @param handler_name the namespace used to register the handler with 
  * RpcManager.
  * @param uri the URI at which the XML-RPC service could be accessed.
  */
 public void AddXRHandler(string handler_name, string uri) {
   XmlRpcHandler handler = new XmlRpcHandler(uri, _node);
   _rpc.AddHandler(handler_name, handler);
   _registered_xmlrpc.Add(handler_name, uri);
 }