Universe.Framework.Servers.HttpServer.BaseHttpServer.AddXmlRPCHandler C# (CSharp) Method

AddXmlRPCHandler() public method

public AddXmlRPCHandler ( string method, XmlRpcMethod handler ) : bool
method string
handler XmlRpcMethod
return bool
        public bool AddXmlRPCHandler (string method, XmlRpcMethod handler)
        {
            lock (m_rpcHandlers)
                m_rpcHandlers [method] = handler;
            return true;
        }

Usage Example

Example #1
0
 public void FinishedStartup()
 {
     if (IsEnabled () && ! ServerStarted())
     {
         m_httpServerStarted = true;
         // Start http server
         // Attach xmlrpc handlers
         MainConsole.Instance.Info ("[XMLRPC MODULE]: " +
             "Starting up XMLRPC Server on port " + m_remoteDataPort +
             " for llRemoteData commands.");
         IHttpServer httpServer = new BaseHttpServer ((uint)m_remoteDataPort, MainServer.Instance.HostName,
             false, 1);
         httpServer.AddXmlRPCHandler ("llRemoteData", XmlRpcRemoteData);
         httpServer.Start ();
     }
 }