Click or drag to resize
IStateHandler Interface
Provides a mechanism for performing custom actions when applying or unapplying the state of a background job by StateMachine.

Namespace: Hangfire.States
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public interface IStateHandler

The IStateHandler type exposes the following members.

Properties
  NameDescription
Public propertyStateName
Gets the name of a state, for which custom actions will be performed.
Top
Methods
  NameDescription
Public methodApply
Performs additional actions when applying a state whose name is equal to the StateName property.
Public methodUnapply
Performs additional actions when unapplying a state whose name is equal to the StateName property.
Top
See Also