Ejemplo n.º 1
0
 public HttpServerEngine(HttpServer setting, int port, int maxThread)
 {
     _setting = setting;
     _port = port;
     _workers = new Thread[maxThread];
     _queue = new Queue<HttpListenerContext>();
     _stop = new ManualResetEvent(false);
     _ready = new ManualResetEvent(false);
     _listener = new HttpListener();
     _listenerThread = new Thread(HandleRequests);
 }
Ejemplo n.º 2
0
 public HttpServerEngine(HttpServer setting, int port)
     : this(setting, port, 1)
 {
 }