C# Класс ManicDigger.Scheduler

A general-purpose task scheduler.
Показать файл Открыть проект

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

Метод Описание
NewBackgroundTask ( SchedulerCallback callback ) : SchedulerTask

Creates a new SchedulerTask object to run in the background thread. Use this if your task is not very time-sensitive or frequent, or if your callback is resource-intensive.

NewBackgroundTask ( SchedulerCallback callback, object userState ) : SchedulerTask

Creates a new SchedulerTask object to run in the background thread. Use this if your task is not very time-sensitive or frequent, or if your callback is resource-intensive.

NewTask ( SchedulerCallback callback ) : SchedulerTask

Creates a new SchedulerTask object to run in the main thread. Use this if your task is time-sensitive or frequent, and your callback won't take too long to execute.

NewTask ( SchedulerCallback callback, object userState ) : SchedulerTask

Creates a new SchedulerTask object to run in the main thread. Use this if your task is time-sensitive or frequent, and your callback won't take too long to execute.

PrintTasks ( [ player ) : void

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

Метод Описание
AddTask ( SchedulerTask task ) : void

Schedules a given task for execution.

BackgroundLoop ( ) : void
BeginShutdown ( ) : void
EndShutdown ( ) : void
FireEvent ( EventHandler eventToFire, SchedulerTask task ) : void
MainLoop ( ) : void
Start ( ) : void
UpdateCache ( ) : void

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

NewBackgroundTask() публичный статический Метод

Creates a new SchedulerTask object to run in the background thread. Use this if your task is not very time-sensitive or frequent, or if your callback is resource-intensive.
public static NewBackgroundTask ( SchedulerCallback callback ) : SchedulerTask
callback SchedulerCallback Method to call when the task is triggered.
Результат SchedulerTask

NewBackgroundTask() публичный статический Метод

Creates a new SchedulerTask object to run in the background thread. Use this if your task is not very time-sensitive or frequent, or if your callback is resource-intensive.
public static NewBackgroundTask ( SchedulerCallback callback, object userState ) : SchedulerTask
callback SchedulerCallback Method to call when the task is triggered.
userState object Parameter to pass to the method.
Результат SchedulerTask

NewTask() публичный статический Метод

Creates a new SchedulerTask object to run in the main thread. Use this if your task is time-sensitive or frequent, and your callback won't take too long to execute.
public static NewTask ( SchedulerCallback callback ) : SchedulerTask
callback SchedulerCallback Method to call when the task is triggered.
Результат SchedulerTask

NewTask() публичный статический Метод

Creates a new SchedulerTask object to run in the main thread. Use this if your task is time-sensitive or frequent, and your callback won't take too long to execute.
public static NewTask ( SchedulerCallback callback, object userState ) : SchedulerTask
callback SchedulerCallback Method to call when the task is triggered.
userState object Parameter to pass to the method.
Результат SchedulerTask

PrintTasks() публичный статический Метод

public static PrintTasks ( [ player ) : void
player [
Результат void