C# 클래스 Schyntax.Schtick

파일 보기 프로젝트 열기: schyntax/cs-schtick 1 사용 예제들

공개 메소드들

메소드 설명
AddAsyncTask ( string name, Schyntax.Schedule schedule, ScheduledTaskAsyncCallback asyncCallback, bool autoRun = true, DateTimeOffset lastKnownEvent = default(DateTimeOffset), System.TimeSpan window = default(TimeSpan) ) : ScheduledTask

Adds a scheduled task to this instance of Schtick.

AddAsyncTask ( string name, string schedule, ScheduledTaskAsyncCallback asyncCallback, bool autoRun = true, DateTimeOffset lastKnownEvent = default(DateTimeOffset), System.TimeSpan window = default(TimeSpan) ) : ScheduledTask

Adds a scheduled task to this instance of Schtick.

AddTask ( string name, Schyntax.Schedule schedule, ScheduledTaskCallback callback, bool autoRun = true, DateTimeOffset lastKnownEvent = default(DateTimeOffset), System.TimeSpan window = default(TimeSpan) ) : ScheduledTask

Adds a scheduled task to this instance of Schtick.

AddTask ( string name, string schedule, ScheduledTaskCallback callback, bool autoRun = true, DateTimeOffset lastKnownEvent = default(DateTimeOffset), TimeSpan window = default(TimeSpan) ) : ScheduledTask

Adds a scheduled task to this instance of Schtick.

GetAllTasks ( ) : ScheduledTask[]
RemoveTask ( string name ) : bool
Schtick ( ) : System
Shutdown ( ) : Task
TryGetTask ( string name, ScheduledTask &task ) : bool

비공개 메소드들

메소드 설명
AddPendingEvent ( PendingEvent ev ) : void
AddTaskImpl ( string name, Schedule schedule, ScheduledTaskCallback callback, ScheduledTaskAsyncCallback asyncCallback, bool autoRun, DateTimeOffset lastKnownEvent, TimeSpan window ) : ScheduledTask
Poll ( ) : Task
PopAndRunEvents ( DateTimeOffset intendedTime ) : void
TaskOnOnException ( ScheduledTask task, Exception ex ) : void

메소드 상세

AddAsyncTask() 공개 메소드

Adds a scheduled task to this instance of Schtick.
public AddAsyncTask ( string name, Schyntax.Schedule schedule, ScheduledTaskAsyncCallback asyncCallback, bool autoRun = true, DateTimeOffset lastKnownEvent = default(DateTimeOffset), System.TimeSpan window = default(TimeSpan) ) : ScheduledTask
name string A unique name for this task. If null, a guid will be used.
schedule Schyntax.Schedule A Schyntax Schedule object.
asyncCallback ScheduledTaskAsyncCallback Function which will be called each time the task is supposed to run.
autoRun bool If true, Start() will be called on the task automatically.
lastKnownEvent DateTimeOffset The last Date when the task is known to have run. Used for Task Windows.
window System.TimeSpan /// The period of time after an event should have run where it would still be appropriate to run it. /// See Task Windows documentation for more details. ///
리턴 ScheduledTask

AddAsyncTask() 공개 메소드

Adds a scheduled task to this instance of Schtick.
public AddAsyncTask ( string name, string schedule, ScheduledTaskAsyncCallback asyncCallback, bool autoRun = true, DateTimeOffset lastKnownEvent = default(DateTimeOffset), System.TimeSpan window = default(TimeSpan) ) : ScheduledTask
name string A unique name for this task. If null, a guid will be used.
schedule string A Schyntax schedule string.
asyncCallback ScheduledTaskAsyncCallback Function which will be called each time the task is supposed to run.
autoRun bool If true, Start() will be called on the task automatically.
lastKnownEvent DateTimeOffset The last Date when the task is known to have run. Used for Task Windows.
window System.TimeSpan /// The period of time after an event should have run where it would still be appropriate to run it. /// See Task Windows documentation for more details. ///
리턴 ScheduledTask

AddTask() 공개 메소드

Adds a scheduled task to this instance of Schtick.
public AddTask ( string name, Schyntax.Schedule schedule, ScheduledTaskCallback callback, bool autoRun = true, DateTimeOffset lastKnownEvent = default(DateTimeOffset), System.TimeSpan window = default(TimeSpan) ) : ScheduledTask
name string A unique name for this task. If null, a guid will be used.
schedule Schyntax.Schedule A Schyntax Schedule object.
callback ScheduledTaskCallback Function which will be called each time the task is supposed to run.
autoRun bool If true, Start() will be called on the task automatically.
lastKnownEvent DateTimeOffset The last Date when the task is known to have run. Used for Task Windows.
window System.TimeSpan /// The period of time after an event should have run where it would still be appropriate to run it. /// See Task Windows documentation for more details. ///
리턴 ScheduledTask

AddTask() 공개 메소드

Adds a scheduled task to this instance of Schtick.
public AddTask ( string name, string schedule, ScheduledTaskCallback callback, bool autoRun = true, DateTimeOffset lastKnownEvent = default(DateTimeOffset), TimeSpan window = default(TimeSpan) ) : ScheduledTask
name string A unique name for this task. If null, a guid will be used.
schedule string A Schyntax schedule string.
callback ScheduledTaskCallback Function which will be called each time the task is supposed to run.
autoRun bool If true, Start() will be called on the task automatically.
lastKnownEvent DateTimeOffset The last Date when the task is known to have run. Used for Task Windows.
window TimeSpan /// The period of time after an event should have run where it would still be appropriate to run it. /// See Task Windows documentation for more details. ///
리턴 ScheduledTask

GetAllTasks() 공개 메소드

public GetAllTasks ( ) : ScheduledTask[]
리턴 ScheduledTask[]

RemoveTask() 공개 메소드

public RemoveTask ( string name ) : bool
name string
리턴 bool

Schtick() 공개 메소드

public Schtick ( ) : System
리턴 System

Shutdown() 공개 메소드

public Shutdown ( ) : Task
리턴 Task

TryGetTask() 공개 메소드

public TryGetTask ( string name, ScheduledTask &task ) : bool
name string
task ScheduledTask
리턴 bool