Click or drag to resize
IElectStateFilter Interface
Defines methods that are required for a state changing filter.

Namespace: Hangfire.States
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version:
public interface IElectStateFilter

The IElectStateFilter type exposes the following members.

Public methodOnStateElection
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.
See Also