internal bool Start() { try { HTTPListener = new HttpServer.WebServer(Convert.ToUInt32( ApplicationSettings.HTTPPort), IPAddress.Any.ToString(), "",( Request, Response, Session ) =>{ return new HTTPClient( Request, Response, Session ).Process(); } ); HTTPListener.Run(); return true; } catch (Exception Ex) { ApplicationLog.Write(LogSource.HTTP, Ex); } return false; }
internal void Stop() { if (HTTPListener != null) HTTPListener.Stop(); HTTPListener = null; }