IJobFactory NewJob Method Quartz.NET 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: 2.2.1.400
Syntax

IJob NewJob(
	TriggerFiredBundle bundle,
	IScheduler scheduler
)

Parameters

bundle
Type: Quartz.Spi TriggerFiredBundle
The TriggerFiredBundle from which the IJobDetail and other info relating to the trigger firing can be obtained.
scheduler
Type: Quartz IScheduler
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 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 wih instantiating the Job.
See Also