Chris
Chris

Reputation: 7621

Quartz.NET auditing

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.

Upvotes: 1

Views: 609

Answers (1)

Ronald Wildenberg
Ronald Wildenberg

Reputation: 32134

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.

Upvotes: 1

Related Questions