InvokeShutdown() публичный статический Метод

public static InvokeShutdown ( ShutdownEventArgs e ) : void
e ShutdownEventArgs
Результат void
Пример #1
0
        private static void HandleClosed()
        {
            if (m_Closing)
            {
                return;
            }

            m_Closing = true;

            Console.Write("Exiting...");

            if (!m_Crashed)
            {
                EventSink.InvokeShutdown(new ShutdownEventArgs());
            }

            if (SocketPool.Created)
            {
                SocketPool.Destroy();
            }

            Timer.TimerThread.Set();

            Console.WriteLine("done");
        }
Пример #2
0
        private static void HandleClosed()
        {
            if (Closing)
            {
                return;
            }

            Closing = true;

            if (Debug)
            {
                Console.Write("Exiting...");
            }

            World.WaitForWriteCompletion();

            if (!_Crashed)
            {
                EventSink.InvokeShutdown(new ShutdownEventArgs());
            }

            Timer.TimerThread.Set();

            if (Debug)
            {
                Console.WriteLine("done");
            }
        }
Пример #3
0
 private static void HandleClosed()
 {
     if (Core.m_Closing)
     {
         return;
     }
     Core.m_Closing = true;
     Console.Write("Exiting...");
     if (!Core.m_Crashed)
     {
         EventSink.InvokeShutdown(new ShutdownEventArgs());
     }
     Core.timerThread.Join();
     Console.WriteLine("done");
 }
Пример #4
0
        private static void HandleClosed()
        {
            if (m_Closing)
            {
                return;
            }

            m_Closing = true;

            log.Info("Exiting...");

            if (!m_Crashed)
            {
                EventSink.InvokeShutdown(new ShutdownEventArgs());
            }

            timerThread.Join();
            log.Info("done");
        }
Пример #5
0
        private static void HandleClosed()
        {
            if (Closing)
            {
                return;
            }

            Closing = true;

            log.Info("Exiting...");

            if (!m_Crashed)
            {
                EventSink.InvokeShutdown(new ShutdownEventArgs());
            }

            if (m_TimerThread != null)
            {
                m_TimerThread.Stop();
            }

            log.Info("done");
        }
Пример #6
0
        private static void HandleClosed()
        {
            if (m_Closing)
            {
                return;
            }

            m_Closing = true;

            Console.Write("Exiting...");

            if (!m_Crashed)
            {
                EventSink.InvokeShutdown(new ShutdownEventArgs());
            }

            if (timerThread.ThreadState != System.Threading.ThreadState.Unstarted)
            {
                timerThread.Join();
            }

            Console.WriteLine("done");
        }
Пример #7
0
        private static void HandleClosed()
        {
            if (m_Closing)
            {
                return;
            }

            m_Closing = true;

            Console.Write("Exiting...");

            if (!m_Crashed)
            {
                EventSink.InvokeShutdown(new ShutdownEventArgs());
            }

            if (timerThread != null && timerThread.IsAlive)
            {
                Timer.TimerThread.WakeUp();
                timerThread.Join();
            }

            Console.WriteLine("done");
        }