C# Class Hourglass.Managers.TimerManager

Manages timers.
Inheritance: Hourglass.Managers.Manager
Afficher le fichier Open project: Dziemborowicz/Hourglass

Méthodes publiques

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

ClearResumableTimers() public méthode

Clears the ResumableTimers.
public ClearResumableTimers ( ) : void
Résultat void

Initialize() public méthode

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

Persist() public méthode

Persists the state of the class.
public Persist ( ) : void
Résultat void

Remove() public méthode

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

Remove() public méthode

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 .
Résultat void

Property Details

Instance public_oe static_oe property

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