IT:AD:Quartz.NET
Summary
- Quartz.NET is a C# port of the Java library of the same name.
- Key components are:
SchedulersJobs (really just an ICommand)JobDetails (the state for the Job Command)TriggersJobListeners
- The loose coupling between
Jobs andTriggers allows a powerful many-to-many configuration(many triggers to one job, or one trigger setting off many jobs). - Pros:
- Works in a .NET app.
- Free standing: no coupling to the windows scheduling mechanism.
- Cons:
- Not available for .NET20.
- Has a dependency on the open source
CommonLoggerlibrary. Shame!
Key Points
- In a
Scheduler, you register a newJobDetail, that wrap aJob.- The
JobDetailcontains variables needed by theJobat execution time.
- If you want the Job to be able to update tracking variables, the Job has to inherit from
IStatefulJobrather than justIJob. - Only allowed to throw
JobExecutionException
* Examples on the site are out of date.- See this page for later API examples.