Cron Builder object that can be used to build Cron expressions, describe them, and manipulate objects.
- Build Cron Expression.
- Create Cron by Expression.
- Display Description of Cron expression or a section.
- Expression Chaining of Cron object and Sections (Seconds, Minutes, Hours, DayMonth, Months, DayWeek).
- Set intervals or specific times on Time Sections (Seconds, Minutes, Hours).
- Set specific date sections (DayMonth, Months, DayWeek).
- Specify allowing seconds (non-standard).
schedule = new CronBuilder();
var cron = new CronBuilder(expression);
var cron = new CronBuilder
{
{ CronDays.Thursday, CronDays.Saturday }
};
var cron = new CronBuilder
{
{ CronMonths.August, CronMonths.November }
};
var cron = new CronBuilder
{
{ CronDays.Thursday, CronMonths.November }
};
schedule.Add(time: CronTimeSections.Seconds, value: seconds, repeatEvery: true)
schedule.Add(CronTimeSections.Minutes, 4)
schedule.Add(CronTimeSections.Hours, 3, 5)
schedule.Add(CronMonths.March)
schedule.Add(CronDays.Wednesday)
schedule = new CronBuilder();
schedule
.Add(CronDays.Friday)
.Add(CronTimeSections.DayMonth, dayMonth)
.Seconds.Add(5);
var descCron = cron.Description;
var descSeconds = cron.Seconds.Description;
cron.Remove(CronTimeSections.Seconds, 5);
cron.Remove(CronTimeSections.Seconds, 5, 6);
cron.Reset(CronTimeSections.DayWeek);
cron.ResetAll();
Add support to serialize ICron or CronBuilder.
Assume standard Cron, Remove Years Allow Seconds as an option. Remove Strongname.
Minor Cleanup and Fixes / Update packages.
Cron Object renamed to CronBuilder to simplify creation due to conflicting namespace.