C# Class DNTScheduler.ScheduledTasksCoordinator

Scheduled Tasks Manager
Inheritance: System.Web.Hosting.IRegisteredObject, IDisposable
Afficher le fichier Open project: VahidN/DNTScheduler

Méthodes publiques

Méthode Description
AddScheduledTask ( DNTScheduler.ScheduledTaskTemplate scheduledTask ) : void

Adds a new scheduled task.

AddScheduledTasks ( ) : void

Adds new scheduled tasks.

Dispose ( ) : void

Stops the scheduler.

RemoveTask ( string taskName ) : void

Removes a task from the list.

Start ( ) : void

Starts TimerCallback.

Stop ( ) : void

Stops the scheduler.

Stop ( bool immediate ) : void

Call if the app is shutting down. Should only be called by the ASP.Net container.

Private Methods

Méthode Description
ScheduledTasksCoordinator ( ) : System

Scheduled Tasks Manager

taskAction ( IEnumerable taskToRun ) : void

Method Details

AddScheduledTask() public méthode

Adds a new scheduled task.
public AddScheduledTask ( DNTScheduler.ScheduledTaskTemplate scheduledTask ) : void
scheduledTask DNTScheduler.ScheduledTaskTemplate new task
Résultat void

AddScheduledTasks() public méthode

Adds new scheduled tasks.
public AddScheduledTasks ( ) : void
Résultat void

Dispose() public méthode

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

RemoveTask() public méthode

Removes a task from the list.
public RemoveTask ( string taskName ) : void
taskName string name of the task to remove
Résultat void

Start() public méthode

Starts TimerCallback.
public Start ( ) : void
Résultat void

Stop() public méthode

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

Stop() public méthode

Call if the app is shutting down. Should only be called by the ASP.Net container.
public Stop ( bool immediate ) : void
immediate bool ASP.Net sets this to false first, then to true the second /// call 30 seconds later.
Résultat void