Click or drag to resize
AwaitingState Class
Defines the intermediate state of a background job when it is waiting for a parent background job to be finished before it is moved to the EnqueuedState by the ContinuationsSupportAttribute filter.
Inheritance Hierarchy
SystemObject
  Hangfire.StatesAwaitingState

Namespace: Hangfire.States
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public class AwaitingState : IState

The AwaitingState type exposes the following members.

Constructors
  NameDescription
Public methodAwaitingState(String)
Initializes a new instance of the AwaitingState class with the specified parent background job id and with an instance of the EnqueuedState class as a next state.
Public methodAwaitingState(String, IState)
Initializes a new instance of the AwaitingState class with the specified parent job id and next state.
Public methodAwaitingState(String, IState, JobContinuationOptions)
Initializes a new instance of the AwaitingState class with the given options along with other parameters.
Public methodAwaitingState(String, IState, JobContinuationOptions, TimeSpan)
Initializes a new instance of the AwaitingState class with the specified expiration time along with other parameters.
Top
Properties
  NameDescription
Public propertyExpiration
Gets the expiration time of a background job continuation.
Public propertyIgnoreJobLoadException
Gets whether transition to this state should ignore job de-serialization exceptions.
Public propertyIsFinal
Gets if the current state is a final one.
Public propertyName
Gets the unique name of the state.
Public propertyNextState
Gets the next state, to which a background job will be moved.
Public propertyOptions
Gets the continuation options associated with the current state.
Public propertyParentId
Gets the identifier of a parent background job.
Public propertyReason
Gets the human-readable reason of a state transition.
Top
Methods
  NameDescription
Public methodSerializeData
Gets a serialized representation of the current state.
Top
Fields
  NameDescription
Public fieldStatic memberStateName
Represents the name of the Awaiting state. This field is read-only.
Top
Remarks

Background job in AwaitingState is referred as a continuation of a background job with ParentId.

Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also