TestimoX

API Reference

Class

ServiceSchedulePreviewer

Namespace TestimoX.Services
Assembly TestimoX
Modifiers static

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 requiredposition: 0
Schedule configuration.
from System.DateTimeOffset requiredposition: 1
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 requiredposition: 0
Schedule configuration.
from System.DateTimeOffset requiredposition: 1
Reference time.
count System.Int32 requiredposition: 2
Number of occurrences to return.

Returns

List of upcoming run times.