Scheduler helper.
Class instance accessor: Scheduler
More...
Scheduler helper.
Class instance accessor: Scheduler
◆ WithName()
Select the schedule with the specified name.
- Parameters
-
◆ Get()
Get the selected schedule instance.
◆ SetSchedule()
Add/Modify the schedule with the previously selected name.
- Parameters
-
cronExpression | Cron expression. |
◆ IsScheduling() [1/2]
Determines whether the selected schedule is matching in this very moment.
- Returns
true
if the selected schedule is matching, otherwise, false
.
◆ IsScheduling() [2/2]
bool IsScheduling |
( |
string |
cronExpression | ) |
|
Determines whether the given cron expression is matching at this very moment.
- Returns
true
if the given cron expression is matching; otherwise, false
.
- Parameters
-
cronExpression | Cron expression. |
◆ IsOccurrence()
bool IsOccurrence |
( |
DateTime |
date, |
|
|
string |
cronExpression |
|
) |
| |
Determines whether the given cron expression is a matching occurrence at the given date/time.
- Returns
true
if the given cron expression is matching; otherwise, false
.
- Parameters
-
date | Date. |
cronExpression | Cron expression. |
◆ SolarTimes()
SolarTimes SolarTimes |
( |
DateTime |
date | ) |
|
Solar Times data.
- Returns
- SolarTime data.
- Parameters
-
The documentation for this class was generated from the following file: