Пример #1
0
        private ShutdownFinishedEventArgs InvokeShutdownFinished()
        {
            var e = new ShutdownFinishedEventArgs();
            var finished = ShutdownFinished;
            if (finished != null) finished(this, e);

            return e;
        }
Пример #2
0
 private void Dispatcher_ShutdownFinished(object sender, ShutdownFinishedEventArgs e)
 {
     lock (Dispatcher)
     {
         /* If our restart thread flag is set,
          * then we want to cancel our dispatcher's
          * shutdown and have it continue it's
          * processing of messages and delegates */
         e.CancelShutdown = m_restartThread;
         m_restartThread  = false;
     }
 }
Пример #3
0
        private ShutdownFinishedEventArgs InvokeShutdownFinished()
        {
            var e        = new ShutdownFinishedEventArgs();
            var finished = ShutdownFinished;

            if (finished != null)
            {
                finished(this, e);
            }

            return(e);
        }
 private void Dispatcher_ShutdownFinished(object sender, ShutdownFinishedEventArgs e)
 {
     lock(Dispatcher)
     {
         /* If our restart thread flag is set,
          * then we want to cancel our dispatcher's
          * shutdown and have it continue it's
          * processing of messages and delegates */
         e.CancelShutdown = m_restartThread;
         m_restartThread = false;
     }
 }