예제 #1
0
 public HttpServer(XmlRpcServer processor)
 {
     listener       = new HttpListener();
     xmlRpcServer   = processor;
     listenerThread = new Thread(Runner)
     {
         Name         = "Robot Framework listener thread",
         IsBackground = true
     };
 }
예제 #2
0
파일: HttpServer.cs 프로젝트: rte-se/emul8
 public HttpServer(XmlRpcServer processor)
 {
     listener = new HttpListener();
     xmlRpcServer = processor;
     listenerThread = new Thread(Runner)
     {
         Name = "Robot Framework listener thread",
         IsBackground = true
     };
 }
예제 #3
0
        public static void Main(string[] args)
        {
            int port;
            if(args.Length != 1 || !int.TryParse(args[0], out port))
            {
                Console.Error.WriteLine("Provide a valid port number as an argument.");
                return;
            }

            var keywordManager = new KeywordManager();
            TypeManager.Instance.AutoLoadedType += keywordManager.Register;

            var processor = new XmlRpcServer(keywordManager);
            server = new HttpServer(processor);
            server.Run(port);
            server.Dispose();
        }