C# Class Hourglass.Managers.WakeUpManager

Schedules the computer to wake up when the next timer expires if the computer is not being kept awake while one or more timers is running.
Inheritance: Hourglass.Managers.Manager
Afficher le fichier Open project: Dziemborowicz/Hourglass

Méthodes publiques

Свойство Type Description
Instance WakeUpManager

Méthodes publiques

Méthode Description
Initialize ( ) : void

Initializes the class.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Disposes the manager.

Private Methods

Méthode Description
CancelWaitableTimer ( ) : void

Cancels the timer. If the timer has not been set or has already been cancelled, this method does nothing.

GetNextTimerExpiry ( ) : DateTime?

Returns the the next expiry time for any running timer, or null if there are no running timers.

PowerModeChanged ( object sender, Microsoft.Win32.PowerModeChangedEventArgs e ) : void

Invoked when the user suspends or resumes the system.

SetWaitableTimer ( System.DateTime dateTime ) : void

Sets a timer to wake the computer at the specified date and time.

WakeUpManager ( ) : System

Prevents a default instance of the WakeUpManager class from being created.

Method Details

Dispose() protected méthode

Disposes the manager.
protected Dispose ( bool disposing ) : void
disposing bool A value indicating whether this method was invoked by an explicit call to .
Résultat void

Initialize() public méthode

Initializes the class.
public Initialize ( ) : void
Résultat void

Property Details

Instance public_oe static_oe property

Singleton instance of the WakeUpManager class.
public static WakeUpManager,Hourglass.Managers Instance
Résultat WakeUpManager