コード例 #1
0
        public static void Shutdown()
        {
            if (MooNetServer != null)
            {
                Logger.Warn("Shutting down MooNet-Server..");
                MooNetServer.Shutdown();
            }

            if (GameServer != null)
            {
                Logger.Warn("Shutting down Game-Server..");
                GameServer.Shutdown();
            }

            StopWebServices();
            Environment.Exit(0);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: h0MER247/mooege-1
        public static void Shutdown()
        {
            if (MooNetServer != null)
            {
                Logger.Warn("Shutting down MooNet-Server..");
                MooNetServer.Shutdown();
            }

            if (GameServer != null)
            {
                Logger.Warn("Shutting down Game-Server..");
                GameServer.Shutdown();
            }

            // todo: stop webservices.

            Environment.Exit(0);
        }