API Reference
Class
ServiceSchedulePreviewer
Computes upcoming schedule occurrences for service runs.
Inheritance
- Object
- ServiceSchedulePreviewer
Methods
public static Nullable<DateTimeOffset> NextOccurrence(ScheduleConfig schedule, DateTimeOffset from) #Returns:
Nullable<DateTimeOffset>Returns the next scheduled run time, if any.
Parameters
- schedule TestimoX.Configuration.Service.Schedule.ScheduleConfig
- Schedule configuration.
- from System.DateTimeOffset
- Reference time. Treated as local time for schedule evaluation.
Returns
Next scheduled run time, or null.
public static IReadOnlyList<DateTimeOffset> Preview(ScheduleConfig schedule, DateTimeOffset from, Int32 count) #Returns:
IReadOnlyList<DateTimeOffset>Computes the next count occurrences.
Parameters
- schedule TestimoX.Configuration.Service.Schedule.ScheduleConfig
- Schedule configuration.
- from System.DateTimeOffset
- Reference time.
- count System.Int32
- Number of occurrences to return.
Returns
List of upcoming run times.