Table of Contents

Struct AddTriggerOptions

Namespace
Quartz
Assembly
Quartz.dll

How a trigger is stored on its own, without the job it fires.

public readonly record struct AddTriggerOptions : IEquatable<AddTriggerOptions>
Implements
Inherited Members

Remarks

Defaults are the conservative ones: nothing is replaced. So default — which is what omitting the argument gives — is "store it, replace nothing", and there is no third state between "not given" and "all defaults" for an implementer to have to guess about.

This is a store-level type. IScheduler has no AddTrigger: a trigger reaches a scheduler through ScheduleJob(ITrigger, ScheduleJobOptions, CancellationToken), which is the same operation named for what it accomplishes. AddTrigger(IOperableTrigger, AddTriggerOptions, CancellationToken) is the storage half of it, and this is the storage half's options.

Properties

Replace

Whether an already stored trigger with the same key is over-written. When false, storing a trigger whose key already exists throws ObjectAlreadyExistsException.

public bool Replace { get; init; }

Property Value

bool

Replacing

Over-write an already stored trigger with the same key. The name for new AddTriggerOptions { Replace = true }, which is what nearly every call that passes these options at all is saying.

public static AddTriggerOptions Replacing { get; }

Property Value

AddTriggerOptions

See Also