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
Exibir arquivo Open project: Dziemborowicz/Hourglass

Public Properties

Property Type Description
Instance WakeUpManager

Public Methods

Method Description
Initialize ( ) : void

Initializes the class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes the manager.

Private Methods

Method 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 method

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

Initialize() public method

Initializes the class.
public Initialize ( ) : void
return void

Property Details

Instance public_oe static_oe property

Singleton instance of the WakeUpManager class.
public static WakeUpManager,Hourglass.Managers Instance
return WakeUpManager