How can I configure a CronString for Quartz.Net job scheduler for the following job:
Job should run on BiWeekly on Monday at 12:00 AM. i.e. it should run on every Monday
A "cron expresssion" can be created as follows for any frequency of the week.
int repeatInterval = 2;
int weeklyInterval = repeatInterval*7;
String cronExp="0 0 12 1/ " +weeklyInterval " * ? *";
Creates a cron expression which repeats bi-weekly at 12.
Hope this helps.
Actually what you might be looking for is CalenderIntervalTrigger, which is capable to do this easily.
var trigger = TriggerBuilder.Create()
.StartAt(new DateTime(2012, 11, 19, 12, 0, 0).ToUniversalTime())
.WithCalendarIntervalSchedule(x => x.WithIntervalInWeeks(2))
.Build();