C# 클래스 ManicDigger.Scheduler

A general-purpose task scheduler.
파일 보기 프로젝트 열기: GlennMR/800Craft-Client

공개 메소드들

메소드 설명
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