Server.Core.OnConsoleEvent C# (CSharp) Méthode

OnConsoleEvent() private static méthode

private static OnConsoleEvent ( ConsoleEventType type ) : bool
type ConsoleEventType
Résultat bool
        private static bool OnConsoleEvent( ConsoleEventType type )
        {
            if( World.Saving || ( m_Service && type == ConsoleEventType.CTRL_LOGOFF_EVENT ) )
                return true;

            Kill();	//Kill -> HandleClosed will hadnle waiting for the completion of flushign to disk

            return true;
        }