C# Class OpenNos.Core.Threading.Timer

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

Public Methods

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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
TimerCallBack ( object state ) : void

This method is called by _taskTimer.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Start() public method

Starts the timer.
public Start ( ) : void
return void

Stop() public method

Stops the timer.
public Stop ( ) : void
return void

Timer() public method

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

Timer() public method

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 ///
return System

WaitToStop() public method

Waits the service to stop.
public WaitToStop ( ) : void
return void