C# Class DNTScheduler.ScheduledTasksCoordinator

Scheduled Tasks Manager
Inheritance: System.Web.Hosting.IRegisteredObject, IDisposable
Mostrar archivo Open project: VahidN/DNTScheduler

Public Methods

Method 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

Method Description
ScheduledTasksCoordinator ( ) : System

Scheduled Tasks Manager

taskAction ( IEnumerable taskToRun ) : void

Method Details

AddScheduledTask() public method

Adds a new scheduled task.
public AddScheduledTask ( DNTScheduler.ScheduledTaskTemplate scheduledTask ) : void
scheduledTask DNTScheduler.ScheduledTaskTemplate new task
return void

AddScheduledTasks() public method

Adds new scheduled tasks.
public AddScheduledTasks ( ) : void
return void

Dispose() public method

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

RemoveTask() public method

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

Start() public method

Starts TimerCallback.
public Start ( ) : void
return void

Stop() public method

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

Stop() public method

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.
return void