views:

34

answers:

1

Just a quick 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.

Thanks

A: 

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.

Ronald Wildenberg