Question
I'm going to be using Quartz.NET for a Windows Service I am creating.
I require all jobs carried out to be audited into a separate table (QRTZ_AUDIT) after completion or after failure, but is there a built in way of doing this?
I could simply manually open up connections to both the jobs table and the audit table and copy the relevant row to the audit table, but it seems like a lot of effort when there may be built in functionality.
Solution
You need to implement the IJobListener
interface for this. You register this listener to the scheduler using AddGlobalJobListener
.
See also this question for more information.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow