Struct ScheduledOneOffJob
- Namespace
- Quartz
- Assembly
- Quartz.dll
What one call to the ScheduleJob<TJob, TInput> one-liners arranged: the trigger that was
stored, and when it will first fire.
public readonly record struct ScheduledOneOffJob : IEquatable<ScheduledOneOffJob>
- Implements
- Inherited Members
Remarks
Two members, because the one-liner wraps ScheduleJob(ITrigger, ScheduleJobOptions, CancellationToken) and should not answer less than what it wrapped: the key is the handle, and the fire time is what a caller logging "scheduled for X" would otherwise have to guess from the time it asked for — which is not the same answer once a calendar or a misfire policy has had its say.
It is not a query object, and stays two members. Everything else about the firing is a property of the trigger the key names, and GetTrigger(TriggerKey, CancellationToken) is how to ask for it.
Constructors
ScheduledOneOffJob(TriggerKey, DateTimeOffset)
What one call to the ScheduleJob<TJob, TInput> one-liners arranged: the trigger that was
stored, and when it will first fire.
public ScheduledOneOffJob(TriggerKey TriggerKey, DateTimeOffset FirstFireTimeUtc)
Parameters
TriggerKeyTriggerKeyThe key of the trigger that was stored, which is the handle to cancel it with — see UnscheduleJob(TriggerKey, CancellationToken) — or to replace it by scheduling the same name again.
FirstFireTimeUtcDateTimeOffsetThe first time at which the trigger will fire, as the store computed it. The same value the ScheduleJob(ITrigger, ScheduleJobOptions, CancellationToken) overload the one-liner wraps returns.
Remarks
Two members, because the one-liner wraps ScheduleJob(ITrigger, ScheduleJobOptions, CancellationToken) and should not answer less than what it wrapped: the key is the handle, and the fire time is what a caller logging "scheduled for X" would otherwise have to guess from the time it asked for — which is not the same answer once a calendar or a misfire policy has had its say.
It is not a query object, and stays two members. Everything else about the firing is a property of the trigger the key names, and GetTrigger(TriggerKey, CancellationToken) is how to ask for it.
- See Also
Properties
FirstFireTimeUtc
The first time at which the trigger will fire, as the store computed it. The same value the ScheduleJob(ITrigger, ScheduleJobOptions, CancellationToken) overload the one-liner wraps returns.
public DateTimeOffset FirstFireTimeUtc { get; init; }
Property Value
TriggerKey
The key of the trigger that was stored, which is the handle to cancel it with — see UnscheduleJob(TriggerKey, CancellationToken) — or to replace it by scheduling the same name again.
public TriggerKey TriggerKey { get; init; }