IJobFactoryNewJob Method

Quartz.NET 3.0 API Documentation
Called by the scheduler at the time of the trigger firing, in order to produce a IJob instance on which to call Execute.

Namespace:  Quartz.Spi
Assembly:  Quartz (in Quartz.dll) Version: 3.0.0
Syntax

C#
IJob NewJob(
	TriggerFiredBundle bundle,
	IScheduler scheduler
)

Parameters

bundle
Type: Quartz.SpiTriggerFiredBundle
The TriggerFiredBundle from which the IJobDetail and other info relating to the trigger firing can be obtained.
scheduler
Type: QuartzIScheduler
a handle to the scheduler that is about to execute the job

Return Value

Type: IJob
the newly instantiated Job
Remarks

It should be extremely rare for this method to throw an exception - basically only the case where there is no way at all to instantiate and prepare the Job for execution. When the exception is thrown, the Scheduler will move all triggers associated with the Job into the Error state, which will require human intervention (e.g. an application restart after fixing whatever configuration problem led to the issue with instantiating the Job).
See Also

Reference