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
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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