static void Main(string[] args) { var server = FastCgiAspNetServer.CreateApplicationHost(Port, VirtualPath, PhysicalPath); server.Start(); Console.WriteLine("Прослушивание по порту {0}", Port); Console.WriteLine("Нажмите любую клавиши для остановки сервера fastcgi"); Console.ReadKey(); server.Stop(); }
static void Main(string[] args) { var server = FastCgiAspNetServer.CreateApplicationHost(Port, VirtualPath, PhysicalPath); server.Start(); Console.WriteLine("Listening on port {0}", Port); Console.WriteLine("Press any key to stop the fastcgi server"); Console.ReadKey(); server.Stop(); }
static FastCgiAspNetServer CreateServer() { var loggerFactory = new Loggers.Log4Net.LoggerFactory(); return(FastCgiAspNetServer.CreateApplicationHost(Config.Address, Config.Port, Config.VirtualPath, Config.PhysicalPath, loggerFactory)); }