Beispiel #1
0
        public static void Main(string[] args)
        {
            XmlRpcServer server = new XmlRpcServer(25566);

            server.Add("MyProc", new MyProc());
            server.Start();
        }
        /// <summary>The application starts here.</summary>
        /// <remarks>This method instantiates an <c>XmlRpcServer</c> as an embedded XML-RPC server,
        /// then add this object to the server as an XML-RPC handler, and finally starts the server.</remarks>
        public static void Main()
        {
            XmlRpcServer server = new XmlRpcServer(PORT);

            server.Add("sample", new SampleServerWithExpose());
            Console.WriteLine("Web Server Running on port {0} ... Press ^C to Stop...", PORT);
            server.Start();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            XmlRpcServer server = new XmlRpcServer(port);

            server.Add("sample", new Server());
            Console.WriteLine("Сервер запущен");
            server.Start(); //Запуск сервера
        }
Beispiel #4
0
        static void Main(string[] args)
        {
            Logger.Delegate = new Logger.LoggerDelegate(WriteEntry);

            XmlRpcServer server = new XmlRpcServer(PORT);

            server.Add("sample", new Server());
            Console.WriteLine("Web Server Running on port {0} ... Press ^C to Stop...", PORT);
            server.Start();
        }
        /// <summary>The application starts here.</summary>
        /// <remarks>This method instantiates an <c>XmlRpcServer</c> as an embedded XML-RPC server,
        /// then add this object to the server as an XML-RPC handler, and finally starts the server.</remarks>
        public static void Main()
        {
            // Use the console logger above.
            Logger.Delegate = new Logger.LoggerDelegate(WriteEntry);

            XmlRpcServer server = new XmlRpcServer(PORT);

            server.Add("sample", new SampleServer());
            Console.WriteLine("Web Server Running on port {0} ... Press ^C to Stop...", PORT);
            server.Start();
        }
Beispiel #6
0
        public static void Main(string[] args)
        {
            // XML-RPC-Stuff
            // Use the console logger above.
            Nwc.XmlRpc.Logger.Delegate = new Nwc.XmlRpc.Logger.LoggerDelegate(WriteEntry);

            XmlRpcSLConnector = new XmlRpcServer(port);
            XmlRpcSLConnector.Add("XmlRpcSLConnector", new CSSLAgentServer());
            Console.WriteLine("Web Server Running on port {0} ... Press ^C to Stop...", port);
            XmlRpcSLConnector.Start();
        }