Exemple #1
0
        /// <summary>
        /// Stops the server and all handlers
        /// </summary>
        public void Stop()
        {
            var success = InternalStop();

            if (!success)
            {
                Logger.Info("Failed to stop");
            }
            _handlerManager.TearDown();
        }
Exemple #2
0
 /// <summary>
 /// Stops the server and all handlers
 /// </summary>
 public void Stop()
 {
     try
     {
         var success = InternalStop();
         if (!success)
         {
             Logger.Error("Failed to stop");
         }
         _handlerManager.TearDown();
         _clientManager.Clear();
     }
     catch (Exception exception)
     {
         Logger.Error(exception, "Failed to stop");
     }
 }