Exemple #1
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 = _restartThread;
         _restartThread   = false;
     }
 }
Exemple #2
0
        private ShutdownFinishedEventArgs InvokeShutdownFinished()
        {
            var e        = new ShutdownFinishedEventArgs();
            var finished = ShutdownFinished;

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

            return(e);
        }