static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); HttpServer httpServer; httpServer = new LogNetHttpServer(8181); Thread thread = new Thread(new ThreadStart(httpServer.listen)); thread.Start(); Console.WriteLine("Server is listening on: http://localhost:8181"); Application.Run(new LogBrowser()); }
static int Main(string[] args) { HttpServer httpServer; if (args.GetLength(0) > 0) { httpServer = new LogNetHttpServer(Convert.ToInt32(args[0])); } else { //PORT = 8181 if nothing is supplied. httpServer = new LogNetHttpServer(8181); } Thread thread = new Thread(new ThreadStart(httpServer.listen)); thread.Start(); Console.WriteLine("Server is listening on: http://localhost:8181"); return(0); }