C# Class Recognos.Core.SimpleScheduler

Simple scheduler class
Inheritance: IDisposable
Afficher le fichier Open project: Recognos/Recognos.Core Class Usage Examples

Méthodes publiques

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

Méthode Description
RunTask ( ) : void

Runs the scheduled task.

Method Details

Dispose() public méthode

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

SimpleScheduler() public méthode

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

SimpleScheduler() public méthode

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

Start() public méthode

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

Stop() public méthode

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