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