Click or drag to resize
AutomaticRetryAttributeOnStateElection Method
Called when the current state of the job is being changed to the specified candidate state. This state change could be intercepted and the final state could be changed through setting the different state in the context in an implementation of this method.

Namespace: Hangfire
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public void OnStateElection(
	ElectStateContext context
)

Parameters

context
Type: Hangfire.StatesElectStateContext

[Missing <param name="context"/> documentation for "M:Hangfire.AutomaticRetryAttribute.OnStateElection(Hangfire.States.ElectStateContext)"]

Implements

IElectStateFilterOnStateElection(ElectStateContext)
See Also