Property | Type | Description |
---|
Method | Description | |
---|---|---|
Execute ( ) : void |
Start the task now, regardless of any scheduled start time.
|
|
NonReentrant ( ) : |
Will not start a new instance of the task if a previous schedule is still running
|
|
Schedule ( System.Action action ) : System |
Schedules the specified task to run
|
|
Schedule ( ITask task ) : System |
Schedules the specified task to run
|
|
ToRunEvery ( int interval ) : |
Schedules the specified task to run for the specified interval
|
|
ToRunNow ( ) : |
Schedules the specified task to run now
|
|
ToRunOnceAt ( System.DateTime time ) : |
Schedules the specified task to run once at the time specified. If the time has passed, the task will be executed immediately.
|
|
ToRunOnceAt ( int hours, int minutes ) : |
Schedules the specified task to run once at the hour and minute specified. If the hour and minute have passed, the task will be executed immediately.
|
|
WithName ( string name ) : |
Provide a name for this schedule
|
public Schedule ( System.Action action ) : System | ||
action | System.Action | Task to run |
return | System |
public Schedule ( ITask task ) : System | ||
task | ITask | Task to run |
return | System |
public ToRunEvery ( int interval ) : |
||
interval | int | |
return |
public ToRunOnceAt ( System.DateTime time ) : |
||
time | System.DateTime | Time to run the task |
return |
public ToRunOnceAt ( int hours, int minutes ) : |
||
hours | int | 0-23: Represents the hour of today |
minutes | int | 0-59: Represents the minute to run the task |
return |
public WithName ( string name ) : |
||
name | string | Name of this schedule |
return |