Remove (delete) the ITrigger with the
given key, and store the new given one - which must be associated
with the same job (the new trigger must have the job name & group specified)
- however, the new trigger need not have the same name as the old trigger.
Namespace: Quartz
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
Task<Nullable<DateTimeOffset>> RescheduleJob( TriggerKey triggerKey, ITrigger newTrigger, CancellationToken cancellationToken = null )
Parameters
- triggerKey
- Type: QuartzTriggerKey
The ITrigger to be replaced. - newTrigger
- Type: QuartzITrigger
The new ITrigger to be stored. - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation instruction.
Return Value
Type: TaskNullableDateTimeOffsetif a ITrigger with the given name and group was not found and removed from the store (and the new trigger is therefore not stored), otherwise the first fire time of the newly scheduled trigger.
See Also