WakeUp() public static method

DNTScheduler needs a ping service to keep it alive.
public static WakeUp ( ) : void
return void
Example #1
0
        /// <summary>
        ///
        /// </summary>
        public override void Run()
        {
            if (this.IsShuttingDown || this.Pause)
            {
                return;
            }

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