/// <summary> /// Called by the Scheduler when a <see cref="ITrigger" /> has fired, /// and it's associated JobDetail is about to be executed. /// </summary> /// <param name="trigger"></param> /// <param name="context"></param> public void TriggerFired(ITrigger trigger, IJobExecutionContext context) { Logger.InfoFormat("TriggerFired: {0}, {1}", trigger.Key.Name, trigger.Key.Group); var auditLog = GetAuditLog(trigger, "TriggerFired", context); _persistenceStore.InsertAuditLog(auditLog); }
/// <summary> /// Called by the Scheduler when a <see cref="IJobDetail"/> is /// about to be executed (an associated <see cref="ITrigger"/> has occurred). /// This method will not be invoked if the execution of the Job was vetoed by a <see cref="ITriggerListener"/>. /// </summary> /// <seealso cref="JobExecutionVetoed(IJobExecutionContext)"/> public void JobToBeExecuted(IJobExecutionContext context) { Logger.InfoFormat("JobToBeExecuted: {0}, {1}", context.JobDetail.Key.Name, context.JobDetail.Key.Group); var auditLog = GetAuditLog("JobToBeExecuted", context); _persistenceStore.InsertAuditLog(auditLog); }