C# Class Schyntax.Schtick

Afficher le fichier Open project: schyntax/cs-schtick Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

AddAsyncTask() public méthode

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. ///
Résultat ScheduledTask

AddAsyncTask() public méthode

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. ///
Résultat ScheduledTask

AddTask() public méthode

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. ///
Résultat ScheduledTask

AddTask() public méthode

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. ///
Résultat ScheduledTask

GetAllTasks() public méthode

public GetAllTasks ( ) : ScheduledTask[]
Résultat ScheduledTask[]

RemoveTask() public méthode

public RemoveTask ( string name ) : bool
name string
Résultat bool

Schtick() public méthode

public Schtick ( ) : System
Résultat System

Shutdown() public méthode

public Shutdown ( ) : Task
Résultat Task

TryGetTask() public méthode

public TryGetTask ( string name, ScheduledTask &task ) : bool
name string
task ScheduledTask
Résultat bool