Ejemplo n.º 1
0
        public void AddXmlRpcHandler(string path, bool exactPath, string methodName, XmlRpcCallback callback)
        {
            m_xmlrpcCallbacks[methodName] = callback;

            if (m_xmlrpcPaths.Add(path))
            {
                AddHandler("POST", "text/xml", path, exactPath, true, XmlRpcHandler);
                AddHandler("POST", "application/x-www-form-urlencoded", path, exactPath, true, XmlRpcHandler);
            }
        }
Ejemplo n.º 2
0
        public void AddXmlRpcHandler(string path, bool exactPath, string methodName, XmlRpcCallback callback)
        {
            m_xmlrpcCallbacks[methodName] = callback;

            if (m_xmlrpcPaths.Add(path))
            {
                AddHandler("POST", "text/xml", path, exactPath, true, XmlRpcHandler);
                AddHandler("POST", "application/x-www-form-urlencoded", path, exactPath, true, XmlRpcHandler);
            }
        }