static void Main(string[] args) { SimpleServer server = new SimpleServer(); server.Start(); Console.WriteLine("Press any key to stop the fastcgi server"); Console.ReadKey(); server.Stop(); }
static void Main(string[] args) { string path = Path.Combine(Directory.GetCurrentDirectory(), "Root"); SimpleServer server = (SimpleServer)ApplicationHost.CreateApplicationHost(typeof(SimpleServer), "/", path); server.AppDomainConnect(); server.Start(); Console.WriteLine("Press any key to stop the fastcgi server"); Console.ReadKey(); server.Stop(); server.AppDomainDisconnect(); }