示例#1
0
        /// <summary>
        ///
        /// </summary>
        public override void Run()
        {
            if (this.IsShuttingDown || this.Pause)
            {
                return;
            }

            ThisApp.WakeUp();
        }
示例#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());
         }
     }
 }