TriggerUtils ComputeEndTimeToAllowParticularNumberOfFirings Method Quartz.NET API Documentation
Compute the DateTimeOffset that is 1 second after the Nth firing of the given ITrigger, taking the triger's associated ICalendar into consideration.

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

public static Nullable<DateTimeOffset> ComputeEndTimeToAllowParticularNumberOfFirings(
	IOperableTrigger trigger,
	ICalendar calendar,
	int numberOfTimes
)

Parameters

trigger
Type: Quartz.Spi IOperableTrigger
The trigger upon which to do the work
calendar
Type: Quartz ICalendar
The calendar to apply to the trigger's schedule
numberOfTimes
Type: System Int32
The number of next fire times to produce

Return Value

Type: Nullable DateTimeOffset 
the computed Date, or null if the trigger (as configured) will not fire that many times
Remarks

The input trigger will be cloned before any work is done, so you need not worry about its state being altered by this method.
See Also