Beispiel #1
0
        /// <summary>Invoke shutdown finished.
        ///
        /// </summary>
        /// <returns>The event arguments.</returns>
        private ShutdownFinishedEventArgs InvokeShutdownFinished()
        {
            var e        = new ShutdownFinishedEventArgs();
            var finished = ShutdownFinished;

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

            return(e);
        }
Beispiel #2
0
 /// <summary>
 /// Shutdown worker thread.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 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;
     }
 }