Beispiel #1
0
        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;
        }
Beispiel #2
0
 internal void Stop()
 {
     if (HTTPListener != null) HTTPListener.Stop(); HTTPListener = null;
 }