C# 클래스 CodeSoda.Scheduler.Scheduler

Manages Tasks and the schedule that defines when they will run in the background
상속: IScheduler, IDisposable
파일 보기 프로젝트 열기: codesoda/Scheduler

공개 프로퍼티들

프로퍼티 타입 설명
DefaultFrequency int

공개 메소드들

메소드 설명
AddTask ( ITask task, Schedule schedule ) : void

Adds a task onto the schedule so it will be checked and run as defined by the schedule

Dispose ( ) : void

Close and clean up any opened resources

Scheduler ( ) : System

Instantiate a new Scheduler to run background tasks using the DefaultFrequency

Scheduler ( int frequency ) : System

Instantiate a new Scheduler to run background tasks

Start ( ) : void

Start checking if schedules are due to run their tasks

Stop ( ) : void

Stop schedules checking if they are due to run

비공개 메소드들

메소드 설명
Timer_Tick ( object obj ) : void

메소드 상세

AddTask() 공개 메소드

Adds a task onto the schedule so it will be checked and run as defined by the schedule
public AddTask ( ITask task, Schedule schedule ) : void
task ITask The task to run
schedule Schedule The schedule that determines when the task should run
리턴 void

Dispose() 공개 메소드

Close and clean up any opened resources
public Dispose ( ) : void
리턴 void

Scheduler() 공개 메소드

Instantiate a new Scheduler to run background tasks using the DefaultFrequency
public Scheduler ( ) : System
리턴 System

Scheduler() 공개 메소드

Instantiate a new Scheduler to run background tasks
public Scheduler ( int frequency ) : System
frequency int The number of seconds that must elapse between checking for tasks to run
리턴 System

Start() 공개 메소드

Start checking if schedules are due to run their tasks
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stop schedules checking if they are due to run
public Stop ( ) : void
리턴 void

프로퍼티 상세

DefaultFrequency 공개적으로 정적으로 프로퍼티

This is the Default Frequency for any Schedulers created without a specific frequency.
public static int DefaultFrequency
리턴 int