BF2Statistics.Gamespy.MasterServer.Shutdown C# (CSharp) Метод

Shutdown() публичный Метод

Shutsdown the Master server and socket
public Shutdown ( ) : void
Результат void
        public void Shutdown()
        {
            // Discard the poll timer
            PollTimer.Stop();
            PollTimer.Dispose();

            // Shutdown parent
            base.ShutdownSocket();
            MasterTcpServer.Shutdown();

            // Clear servers
            Servers.Clear();

            // Dispose parent objects
            base.Dispose();
        }

Usage Example

        /// <summary>
        /// Shutsdown all of the Gamespy Servers
        /// </summary>
        public static void Shutdown()
        {
            // Shutdown Login Servers
            ClientManager.Shutdown();
            SearchProvider.Shutdown();
            MasterServer.Shutdown();
            CDKeyServer.Shutdown();

            // Update status
            bIsRunning = false;

            // Trigger the OnShutdown Event
            Stopped();
        }
All Usage Examples Of BF2Statistics.Gamespy.MasterServer::Shutdown