Click or drag to resize
IStateIsFinal Property
Gets if the current state is a final one.

Namespace: Hangfire.States
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
bool IsFinal { get; }

Property Value

Type: Boolean
for intermediate states, and for the final ones.
Remarks

Final states define a termination stage of a background job processing pipeline. Background jobs in a final state is considered as finished with no further processing required.

The state machine marks finished background jobs to be expired within an interval that is defined in the JobExpirationTimeout property that is available from a state changing filter that implements the IApplyStateFilter interface.

Note Notes to Implementers
When implementing this property, always hard-code this property to or . Hangfire does not work with states that can be both intermediate and final yet. Don't define a public setter for this property.
See Also