예제 #1
0
        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();
        }
예제 #2
0
파일: Program.cs 프로젝트: EnergonV/BestCS
        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();
        }
예제 #3
0
        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();
        }