C# Class R.Scheduler.Core.AuditTriggerListener

Persist history of all trigger firings via implementation of IPersistanceStore configured during the Scheduler initialisation. Log history of all trigger firings via Common.Logging.
Inheritance: ITriggerListener
Exibir arquivo Open project: R-Suite/R.Scheduler

Public Methods

Method Description
AuditTriggerListener ( ) : System
TriggerComplete ( ITrigger trigger, IJobExecutionContext context, SchedulerInstruction triggerInstructionCode ) : void

Called by the IScheduler when a ITrigger has fired, it's associated IJobDetail has been executed, and it's IOperableTrigger.Triggered method has been called.

TriggerFired ( ITrigger trigger, IJobExecutionContext context ) : void

Called by the Scheduler when a ITrigger has fired, and it's associated JobDetail is about to be executed.

TriggerMisfired ( ITrigger trigger ) : void

Called by the Scheduler when a ITrigger has misfired.

VetoJobExecution ( ITrigger trigger, IJobExecutionContext context ) : bool

If the implementation vetos the execution (via returning true, the job's execute method will not be called. AuditTriggerListener implementation does not veto execution.

Private Methods

Method Description
GetAuditLog ( ITrigger trigger, string action, IJobExecutionContext context = null ) : AuditLog

Method Details

AuditTriggerListener() public method

public AuditTriggerListener ( ) : System
return System

TriggerComplete() public method

Called by the IScheduler when a ITrigger has fired, it's associated IJobDetail has been executed, and it's IOperableTrigger.Triggered method has been called.
public TriggerComplete ( ITrigger trigger, IJobExecutionContext context, SchedulerInstruction triggerInstructionCode ) : void
trigger ITrigger
context IJobExecutionContext
triggerInstructionCode SchedulerInstruction
return void

TriggerFired() public method

Called by the Scheduler when a ITrigger has fired, and it's associated JobDetail is about to be executed.
public TriggerFired ( ITrigger trigger, IJobExecutionContext context ) : void
trigger ITrigger
context IJobExecutionContext
return void

TriggerMisfired() public method

Called by the Scheduler when a ITrigger has misfired.
public TriggerMisfired ( ITrigger trigger ) : void
trigger ITrigger
return void

VetoJobExecution() public method

If the implementation vetos the execution (via returning true, the job's execute method will not be called. AuditTriggerListener implementation does not veto execution.
public VetoJobExecution ( ITrigger trigger, IJobExecutionContext context ) : bool
trigger ITrigger
context IJobExecutionContext
return bool