C# 클래스 Nortal.Utilities.TaskSchedulerEngine.SchedulerEngineBase

The core of task scheduling - finds tasks, builds schedule, executes tasks by schedule.
파일 보기 프로젝트 열기: nortal/Utilities.TaskSchedulerEngine 1 사용 예제들

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