예제 #1
0
        static void Main(string[] args)
        {
            LibLocator.Init();
            var host = new EventHttpMultiworkerListener(Handler, int.Parse(args[2]));

            host.Start(args[0], ushort.Parse(args[1]));
        }
예제 #2
0
 public WebServer(string host, int port, int workers)
 {
     _listener = new EventHttpMultiworkerListener(RequestHandler, workers);
     _host     = host;
     _port     = port;
 }