Ejemplo n.º 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();
        }
Ejemplo n.º 2
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();
        }
Ejemplo n.º 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();
        }