C# 클래스 Sharplike.Core.Scheduling.AbstractSimpleScheduler

The abstract class for any simple scheduler (using either single or multi-threaded models). Any scheduler that inherits from AbstractSimpleScheduler should dispatch tasks in the order they are added to the scheduler. (Note, of course, that in multi-threaded models they may not return in the same order.)
상속: IScheduler
파일 보기 프로젝트 열기: eropple/sharplike

보호된 프로퍼티들

프로퍼티 타입 설명
tasks List

공개 메소드들

메소드 설명
AbstractSimpleScheduler ( ) : System

Constructor.

AddTask ( IScheduledTask task ) : void

Adds a task to the scheduler.

ClearTasks ( ) : void

Clears all tasks from the scheduler.

Process ( ) : void

Processes the scheduler. This should not be called in end user code unless the end user knows exactly what they're doing.

RemoveTask ( IScheduledTask task ) : System.Boolean

Removes a task from the scheduler. Is a fail-safe function; will not throw an exception if the task was not there to begin with.

메소드 상세

AbstractSimpleScheduler() 공개 메소드

Constructor.
public AbstractSimpleScheduler ( ) : System
리턴 System

AddTask() 공개 메소드

Adds a task to the scheduler.
public AddTask ( IScheduledTask task ) : void
task IScheduledTask The task to add to the scheduler.
리턴 void

ClearTasks() 공개 메소드

Clears all tasks from the scheduler.
public ClearTasks ( ) : void
리턴 void

Process() 공개 추상적인 메소드

Processes the scheduler. This should not be called in end user code unless the end user knows exactly what they're doing.
public abstract Process ( ) : void
리턴 void

RemoveTask() 공개 메소드

Removes a task from the scheduler. Is a fail-safe function; will not throw an exception if the task was not there to begin with.
public RemoveTask ( IScheduledTask task ) : System.Boolean
task IScheduledTask The task to remove from the scheduler.
리턴 System.Boolean

프로퍼티 상세

tasks 보호되어 있는 프로퍼티

protected List tasks
리턴 List