ISchedulerAddJob Method (IJobDetail, Boolean, Boolean, CancellationToken)

Quartz.NET 3.0 API Documentation
Add the given IJob to the Scheduler - with no associated ITrigger. The IJob will be 'dormant' until it is scheduled with a ITrigger, or TriggerJob(JobKey, CancellationToken) is called for it.

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

C#
Task AddJob(
	IJobDetail jobDetail,
	bool replace,
	bool storeNonDurableWhileAwaitingScheduling,
	CancellationToken cancellationToken = null
)

Parameters

jobDetail
Type: QuartzIJobDetail

[Missing <param name="jobDetail"/> documentation for "M:Quartz.IScheduler.AddJob(Quartz.IJobDetail,System.Boolean,System.Boolean,System.Threading.CancellationToken)"]

replace
Type: SystemBoolean

[Missing <param name="replace"/> documentation for "M:Quartz.IScheduler.AddJob(Quartz.IJobDetail,System.Boolean,System.Boolean,System.Threading.CancellationToken)"]

storeNonDurableWhileAwaitingScheduling
Type: SystemBoolean

[Missing <param name="storeNonDurableWhileAwaitingScheduling"/> documentation for "M:Quartz.IScheduler.AddJob(Quartz.IJobDetail,System.Boolean,System.Boolean,System.Threading.CancellationToken)"]

cancellationToken (Optional)
Type: System.ThreadingCancellationToken

[Missing <param name="cancellationToken"/> documentation for "M:Quartz.IScheduler.AddJob(Quartz.IJobDetail,System.Boolean,System.Boolean,System.Threading.CancellationToken)"]

Return Value

Type: Task

[Missing <returns> documentation for "M:Quartz.IScheduler.AddJob(Quartz.IJobDetail,System.Boolean,System.Boolean,System.Threading.CancellationToken)"]

Remarks

With the storeNonDurableWhileAwaitingScheduling parameter set to
true
, a non-durable job can be stored. Once it is scheduled, it will resume normal non-durable behavior (i.e. be deleted once there are no remaining associated triggers).
See Also

Reference