Exemple #1
0
 public HttpServer(XmlRpcServer processor)
 {
     listener       = new HttpListener();
     xmlRpcServer   = processor;
     listenerThread = new Thread(Runner)
     {
         Name         = "Robot Framework listener thread",
         IsBackground = true
     };
 }
Exemple #2
0
 public HttpServer(XmlRpcServer processor)
 {
     listener = new HttpListener();
     xmlRpcServer = processor;
     listenerThread = new Thread(Runner)
     {
         Name = "Robot Framework listener thread",
         IsBackground = true
     };
 }
Exemple #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();
        }