Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        public override void Run()
        {
            if (this.IsShuttingDown || this.Pause)
            {
                return;
            }

            ThisApp.WakeUp();
        }
Exemplo n.º 2
0
 private static void currentDomainUnload(object sender, EventArgs e)
 {
     ScheduledTasksCoordinator.Current.Dispose();
     try
     {
         ThisApp.WakeUp();
     }
     catch (Exception ex)
     {
         if (ScheduledTasksCoordinator.Current.OnUnexpectedException != null)
         {
             ScheduledTasksCoordinator.Current.OnUnexpectedException(ex, new PingTask());
         }
     }
 }