/// <summary>
 /// Start
 /// </summary>
 /// <param name="args"></param>
 protected override void OnStart(string[] args)
 {
     try
     {
         // Start the server.
         _httpServerSingle = new Nequeo.Net.Http.ServerSingle(Nequeo.Net.Http.Properties.Settings.Default.HttpStaticSingleBasePath);
         _httpServerSingle.HttpServer.Name              = Nequeo.Net.Http.Service.Program.CommonServerName;
         _httpServerSingle.HttpServer.Timeout           = 30;
         _httpServerSingle.HttpServer.SocketThreadCount = 1;
         _httpServerSingle.Start();
     }
     catch { }
 }
        /// <summary>
        /// Stop
        /// </summary>
        protected override void OnStop()
        {
            try
            {
                if (_httpServerSingle != null)
                {
                    // Stop the server.
                    _httpServerSingle.Stop();
                    _httpServerSingle.Dispose();
                }
            }
            catch { }

            _httpServerSingle = null;
        }