C# Class CodeSoda.Scheduler.Scheduler

Manages Tasks and the schedule that defines when they will run in the background
Inheritance: IScheduler, IDisposable
Afficher le fichier Open project: codesoda/Scheduler

Méthodes publiques

Свойство Type Description
DefaultFrequency int

Méthodes publiques

Méthode Description
AddTask ( ITask task, Schedule schedule ) : void

Adds a task onto the schedule so it will be checked and run as defined by the schedule

Dispose ( ) : void

Close and clean up any opened resources

Scheduler ( ) : System

Instantiate a new Scheduler to run background tasks using the DefaultFrequency

Scheduler ( int frequency ) : System

Instantiate a new Scheduler to run background tasks

Start ( ) : void

Start checking if schedules are due to run their tasks

Stop ( ) : void

Stop schedules checking if they are due to run

Private Methods

Méthode Description
Timer_Tick ( object obj ) : void

Method Details

AddTask() public méthode

Adds a task onto the schedule so it will be checked and run as defined by the schedule
public AddTask ( ITask task, Schedule schedule ) : void
task ITask The task to run
schedule Schedule The schedule that determines when the task should run
Résultat void

Dispose() public méthode

Close and clean up any opened resources
public Dispose ( ) : void
Résultat void

Scheduler() public méthode

Instantiate a new Scheduler to run background tasks using the DefaultFrequency
public Scheduler ( ) : System
Résultat System

Scheduler() public méthode

Instantiate a new Scheduler to run background tasks
public Scheduler ( int frequency ) : System
frequency int The number of seconds that must elapse between checking for tasks to run
Résultat System

Start() public méthode

Start checking if schedules are due to run their tasks
public Start ( ) : void
Résultat void

Stop() public méthode

Stop schedules checking if they are due to run
public Stop ( ) : void
Résultat void

Property Details

DefaultFrequency public_oe static_oe property

This is the Default Frequency for any Schedulers created without a specific frequency.
public static int DefaultFrequency
Résultat int