Table of Contents

Class JobExecutionContextBackfillExtensions

Namespace
Quartz
Assembly
Quartz.dll

Reads which slot a backfilled firing stands in for.

public static class JobExecutionContextBackfillExtensions
Inheritance
JobExecutionContextBackfillExtensions
Inherited Members

Remarks

An extension rather than a member of IJobExecutionContext, so that every hand-written context — a test double, an adapter — keeps compiling.

Methods

GetBackfillSlot(IJobExecutionContext)

The fire time of the original trigger this firing was backfilled for, or null when the firing is not a backfill.

public static DateTimeOffset? GetBackfillSlot(this IJobExecutionContext context)

Parameters

context IJobExecutionContext

The firing.

Returns

DateTimeOffset?

Remarks

A job that works on "the period ending at its fire time" reads its period from here when it is set, because a backfilled firing runs now: ScheduledFireTimeUtc is when the backfill started it, not the slot. The value is read from the trigger's own JobDataMap, under BackfillOriginalFireTime.

See Also