C# Class Recognos.Core.SimpleScheduler

Simple scheduler class
Inheritance: IDisposable
Exibir arquivo Open project: Recognos/Recognos.Core Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

SimpleScheduler ( System.Action task, string timeToRun ) : System

Initializes a new instance of the SimpleScheduler class.

SimpleScheduler ( System.Action task, string timeToRunTask, System.TimeSpan interval ) : System

Initializes a new instance of the SimpleScheduler class.

Start ( ) : void

Starts the scheduler.

Stop ( ) : void

Stops the scheduler.

Private Methods

Method Description
RunTask ( ) : void

Runs the scheduled task.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

SimpleScheduler() public method

Initializes a new instance of the SimpleScheduler class.
public SimpleScheduler ( System.Action task, string timeToRun ) : System
task System.Action The task to run.
timeToRun string The time to run.
return System

SimpleScheduler() public method

Initializes a new instance of the SimpleScheduler class.
public SimpleScheduler ( System.Action task, string timeToRunTask, System.TimeSpan interval ) : System
task System.Action The task to run.
timeToRunTask string The time to run task.
interval System.TimeSpan The interval.
return System

Start() public method

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

Stop() public method

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