示例#1
0
 /// <summary>
 /// </summary>
 /// <param name="sender">
 /// </param>
 /// <param name="e">
 /// </param>
 private static void ConsoleCancelKeyPress(object sender, ConsoleCancelEventArgs e)
 {
     if (zoneServer != null)
     {
         exited = true;
         ISComClient.ShutDown();
         zoneServer.DisconnectAllClients();
         LogUtil.Debug(DebugInfoDetail.Engine, "Shutting down ZoneEngine hard");
     }
 }
示例#2
0
        /// <summary>
        /// </summary>
        /// <param name="parts">
        /// </param>
        private static void ShutDownServer(string[] parts)
        {
            if (zoneServer.IsRunning)
            {
                zoneServer.Stop();
            }

            ISComClient.ShutDown();
            exited = true;
        }