Ejemplo n.º 1
0
 /// <summary>
 /// Add range of months.
 /// </summary>
 /// <param name="minValue">Starting <see cref="CronMonths" /> representing the day of the month.</param>
 /// <param name="maxValue">Ending <see cref="CronMonths" /> representing the day of the month.</param>
 /// <returns><see cref="ICron" /></returns>
 /// <example>
 /// Add time sections by months.
 /// <code>
 /// schedule.Add(CronMonths.March, CronMonths.August);
 /// </code></example>
 /// <inheritdoc cref="ICron" />
 public ICron Add(CronMonths minValue, CronMonths maxValue) =>
 Add(CronTimeSections.Months, (int)minValue, (int)maxValue);
Ejemplo n.º 2
0
 /// <summary>
 /// Add month.
 /// </summary>
 /// <param name="value"><see cref="CronMonths" /> representing the month.</param>
 /// <returns><see cref="ICron" /></returns>
 /// <example>
 /// Add time sections by months.
 /// <code>
 /// schedule.Add(CronMonths.March);
 /// </code></example>
 /// <inheritdoc cref="ICron" />
 public ICron Add(CronMonths value) => Add(CronTimeSections.Months, (int)value);