C# Class OpenNos.Core.Threading.Timer

This class is a timer that performs some tasks periodically.
Inheritance: IDisposable
Afficher le fichier Open project: OpenNos/OpenNos Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
Start ( ) : void

Starts the timer.

Stop ( ) : void

Stops the timer.

Timer ( int period ) : System

Creates a new Timer.

Timer ( int period, bool runOnStart ) : System

Creates a new Timer.

WaitToStop ( ) : void

Waits the service to stop.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
TimerCallBack ( object state ) : void

This method is called by _taskTimer.

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Start() public méthode

Starts the timer.
public Start ( ) : void
Résultat void

Stop() public méthode

Stops the timer.
public Stop ( ) : void
Résultat void

Timer() public méthode

Creates a new Timer.
public Timer ( int period ) : System
period int Task period of timer (as milliseconds)
Résultat System

Timer() public méthode

Creates a new Timer.
public Timer ( int period, bool runOnStart ) : System
period int Task period of timer (as milliseconds)
runOnStart bool /// Indicates whether timer raises Elapsed event on Start method of Timer for once ///
Résultat System

WaitToStop() public méthode

Waits the service to stop.
public WaitToStop ( ) : void
Résultat void