C# Класс Nortal.Utilities.TaskSchedulerEngine.SchedulerEngineBase

The core of task scheduling - finds tasks, builds schedule, executes tasks by schedule.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
BuildDefaultName string
GetNextTaskToRun ScheduledTaskWrapper
Initialize void
MakeRound void
ReportSchedule void

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
InitializeTasks ( ) : IEnumerable

Initialize tasks to execute.

Приватные методы

Метод Описание
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

Описание методов

InitializeTasks() защищенный абстрактный Метод

Initialize tasks to execute.
protected abstract InitializeTasks ( ) : IEnumerable
Результат IEnumerable

RequestStop() публичный Метод

Notifies the engine to stop running as soon as its safe to do so (finishes the task currently executing).
public RequestStop ( ) : void
Результат void

Run() публичный Метод

Runs the engine and starts executing tasks by configured schedule. Does not return until RequestStop() is called by another thread.
public Run ( ) : void
Результат void

RunInSeparateThread() публичный Метод

Starts to schedule and execute the tasks in background thread.
public RunInSeparateThread ( ) : Thread
Результат Thread

SchedulerEngineBase() публичный Метод

public SchedulerEngineBase ( ) : System
Результат System

SchedulerEngineBase() публичный Метод

public SchedulerEngineBase ( String name, ISchedulerEngineLogger logger ) : System
name String
logger ISchedulerEngineLogger If not set then initialized to CsvSchedulerEngineLogger
Результат System