Bogdan Dudnik
Bogdan Dudnik

Reputation: 413

Build simple job trigger in Quartz.net 2.1.x

What is the easiest way to build trigger for a job with given interval as TimeSpan and specified DayOfWeek in 2.1.x versions?

Upvotes: 0

Views: 234

Answers (2)

Kartikya
Kartikya

Reputation: 453

Geek is very right, cron expression may be a bit tricky at first look but they are flawless.

As for quartz, cron expression for "Day of week" can be like: 0 0 8 ? * 1 * Would mean 8 AM every Monday

You better refer to: Quartz CronTrigger

Upvotes: 1

Geek
Geek

Reputation: 23429

Why do you want to build a simple Trigger ? Simple Triggers are prone to DST issues. Make a CRON Trigger using a CRON expression and specify an end time so that the job expires.

Upvotes: 2

Related Questions