Example #1
0
        public static bool RestartListener(bool newSSL, int newPort, EcoHandler handle)
        {
            ServicesAPI.StopEcoService();
            bool flag = ServicesAPI.StartEcoService(newSSL, newPort, handle);

            if (flag)
            {
                Common.WriteLine(string.Concat(new object[]
                {
                    "Eco Listener is restarted successfully, ssl=",
                    newSSL,
                    ", port=",
                    newPort
                }), new string[0]);
            }
            else
            {
                Common.WriteLine(string.Concat(new object[]
                {
                    "Failed to restart Eco Listener, ssl=",
                    newSSL,
                    ", port=",
                    newPort
                }), new string[0]);
            }
            return(flag);
        }
Example #2
0
 public static void StopDispatcher()
 {
     lock (DispatchAPI._lockDispatch)
     {
         Common.WriteLine("StopDispatcher ...", new string[0]);
         if (DispatchAPI._ecoHandler != null)
         {
             DispatchAPI._ecoHandler.Stop();
         }
         DispatchAPI._ecoHandler = null;
         ServicesAPI.StopEcoService();
         SessionAPI.StopSessionManager();
         Common.WriteLine("StopDispatcher Done", new string[0]);
     }
 }