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