private TriggerLogEntry CreateEntry(Quartz.ITrigger trigger, string kind) { TriggerLogEntry entry = new TriggerLogEntry(); entry.Name = trigger.Key.Name; entry.Group = trigger.Key.Group; entry.Timestamp = DateTime.UtcNow; entry.Kind = kind; return(entry); }
public void LogTriggerFired(Quartz.ITrigger trigger, Quartz.IJobExecutionContext context) { TriggerLogs.Insert(this.CreateEntry(trigger, "fired")); }
public void LogTriggerMisfired(Quartz.ITrigger trigger) { TriggerLogs.Insert(this.CreateEntry(trigger, "misfired")); }
public void LogTriggerCompleted(Quartz.ITrigger trigger, Quartz.IJobExecutionContext context, Quartz.SchedulerInstruction triggerInstructionCode) { TriggerLogs.Insert(this.CreateEntry(trigger, "completed")); }