예제 #1
0
        static void Main(string[] args)
        {
            var rawHttpHandler = new RawHttpHandler();
            AsyncHttpListener asyncHttpListener = new Lair.HttpListener.AsyncHttpListener(rawHttpHandler);
            asyncHttpListener.Initialize(new string[] { "http://+:8082" }, 5000);
            asyncHttpListener.Start();

            Console.WriteLine("Listening...");
            Console.ReadLine();
        }
예제 #2
0
        static void Main(string[] args)
        {
            var rawHttpHandler = new RawHttpHandler();
            AsyncHttpListener asyncHttpListener = new Lair.HttpListener.AsyncHttpListener(rawHttpHandler);

            asyncHttpListener.Initialize(new string[] { "http://+:8082" }, 5000);
            asyncHttpListener.Start();

            Console.WriteLine("Listening...");
            Console.ReadLine();
        }