Beispiel #1
0
 /// <summary>
 /// Add range of days in the week.
 /// </summary>
 /// <param name="minValue">Starting <see cref="CronDays" /> representing the day of the week.</param>
 /// <param name="maxValue">Ending <see cref="CronDays" /> representing the day of the week.</param>
 /// <returns><see cref="ICron" /></returns>
 /// <example>
 /// Add time section by Day.
 /// <code>
 /// schedule.Add(CronDays.Wednesday, CronDays.Friday);
 /// </code></example>
 /// <inheritdoc cref="ICron" />
 public ICron Add(CronDays minValue, CronDays maxValue) =>
 Add(CronTimeSections.DayWeek, (int)minValue, (int)maxValue);
Beispiel #2
0
 /// <summary>
 /// Add day of the week.
 /// </summary>
 /// <param name="value"><see cref="CronDays" /> representing the day of the week.</param>
 /// <returns><see cref="ICron" /></returns>
 /// <example>
 /// Add time section by Day.
 /// <code>
 /// schedule.Add(CronDays.Wednesday);
 /// </code></example>
 /// <inheritdoc cref="ICron" />
 public ICron Add(CronDays value) => Add(CronTimeSections.DayWeek, (int)value);