示例#1
0
        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);
        }
示例#2
0
 public void LogTriggerFired(Quartz.ITrigger trigger, Quartz.IJobExecutionContext context)
 {
     TriggerLogs.Insert(this.CreateEntry(trigger, "fired"));
 }
示例#3
0
 public void LogTriggerMisfired(Quartz.ITrigger trigger)
 {
     TriggerLogs.Insert(this.CreateEntry(trigger, "misfired"));
 }
示例#4
0
 public void LogTriggerCompleted(Quartz.ITrigger trigger, Quartz.IJobExecutionContext context, Quartz.SchedulerInstruction triggerInstructionCode)
 {
     TriggerLogs.Insert(this.CreateEntry(trigger, "completed"));
 }