public static void Main(string[] args) { int port; string folder; if (!ReadConfiguration(args, out port, out folder)) { return; } try { using (MiniServer server = new MiniServer(port, folder)) { server.Start(); Console.WriteLine("Press 'Enter' to exit."); Console.ReadLine(); } } catch (Exception ex) { Console.WriteLine(ex); } Console.WriteLine("Finished."); }