C# Class Hourglass.Managers.TimerManager

Manages timers.
Inheritance: Hourglass.Managers.Manager
Show file Open project: Dziemborowicz/Hourglass

Public Properties

Property Type Description
Instance TimerManager

Public Methods

Method Description
Add ( Timer timer ) : void

Add a new timer.

ClearResumableTimers ( ) : void

Clears the ResumableTimers.

Initialize ( ) : void

Initializes the class.

Persist ( ) : void

Persists the state of the class.

Remove ( IEnumerable collection ) : void

Removes the timer elements of the specified collection.

Remove ( Timer timer ) : void

Remove an existing timer.

Private Methods

Method Description
IsBoundToWindow ( Timer timer ) : bool

Returns a value indicating whether a timer is bound to any TimerWindow.

TimerManager ( ) : System

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

Method Details

Add() public method

Add a new timer.
If the has already been added. ///
public Add ( Timer timer ) : void
timer Hourglass.Timing.Timer A .
return void

ClearResumableTimers() public method

Clears the ResumableTimers.
public ClearResumableTimers ( ) : void
return void

Initialize() public method

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

Persist() public method

Persists the state of the class.
public Persist ( ) : void
return void

Remove() public method

Removes the timer elements of the specified collection.
public Remove ( IEnumerable collection ) : void
collection IEnumerable A collection of timers to remove.
return void

Remove() public method

Remove an existing timer.
If the timer had not been added previously or has already been /// removed.
public Remove ( Timer timer ) : void
timer Hourglass.Timing.Timer A .
return void

Property Details

Instance public static property

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