C# Class Nortal.Utilities.TaskSchedulerEngine.SchedulerEngineBase

The core of task scheduling - finds tasks, builds schedule, executes tasks by schedule.
Afficher le fichier Open project: nortal/Utilities.TaskSchedulerEngine Class Usage Examples

Private Properties

Свойство Type Description
BuildDefaultName string
GetNextTaskToRun ScheduledTaskWrapper
Initialize void
MakeRound void
ReportSchedule void

Méthodes publiques

Méthode Description
RequestStop ( ) : void

Notifies the engine to stop running as soon as its safe to do so (finishes the task currently executing).

Run ( ) : void

Runs the engine and starts executing tasks by configured schedule. Does not return until RequestStop() is called by another thread.

RunInSeparateThread ( ) : Thread

Starts to schedule and execute the tasks in background thread.

SchedulerEngineBase ( ) : System
SchedulerEngineBase ( String name, ISchedulerEngineLogger logger ) : System

Méthodes protégées

Méthode Description
InitializeTasks ( ) : IEnumerable

Initialize tasks to execute.

Private Methods

Méthode Description
BuildDefaultName ( ) : string
GetNextTaskToRun ( ) : ScheduledTaskWrapper
Initialize ( ) : void

Sets up service, resets tasks and their configuration.

MakeRound ( ) : void

Engine execution step - waits a configured time (pollInterval) or executes a task.

ReportSchedule ( ) : void

Method Details

InitializeTasks() protected abstract méthode

Initialize tasks to execute.
protected abstract InitializeTasks ( ) : IEnumerable
Résultat IEnumerable

RequestStop() public méthode

Notifies the engine to stop running as soon as its safe to do so (finishes the task currently executing).
public RequestStop ( ) : void
Résultat void

Run() public méthode

Runs the engine and starts executing tasks by configured schedule. Does not return until RequestStop() is called by another thread.
public Run ( ) : void
Résultat void

RunInSeparateThread() public méthode

Starts to schedule and execute the tasks in background thread.
public RunInSeparateThread ( ) : Thread
Résultat Thread

SchedulerEngineBase() public méthode

public SchedulerEngineBase ( ) : System
Résultat System

SchedulerEngineBase() public méthode

public SchedulerEngineBase ( String name, ISchedulerEngineLogger logger ) : System
name String
logger ISchedulerEngineLogger If not set then initialized to CsvSchedulerEngineLogger
Résultat System