Click or drag to resize
StateChangeContext Constructor (JobStorage, IStorageConnection, String, IState, IEnumerableString, CancellationToken)
Initializes a new instance of the StateChangeContext class

Namespace: Hangfire.States
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public StateChangeContext(
	[NotNullAttribute] JobStorage storage,
	[NotNullAttribute] IStorageConnection connection,
	[NotNullAttribute] string backgroundJobId,
	[NotNullAttribute] IState newState,
	[CanBeNullAttribute] IEnumerable<string> expectedStates,
	CancellationToken cancellationToken
)

Parameters

storage
Type: HangfireJobStorage

[Missing <param name="storage"/> documentation for "M:Hangfire.States.StateChangeContext.#ctor(Hangfire.JobStorage,Hangfire.Storage.IStorageConnection,System.String,Hangfire.States.IState,System.Collections.Generic.IEnumerable{System.String},System.Threading.CancellationToken)"]

connection
Type: Hangfire.StorageIStorageConnection

[Missing <param name="connection"/> documentation for "M:Hangfire.States.StateChangeContext.#ctor(Hangfire.JobStorage,Hangfire.Storage.IStorageConnection,System.String,Hangfire.States.IState,System.Collections.Generic.IEnumerable{System.String},System.Threading.CancellationToken)"]

backgroundJobId
Type: SystemString

[Missing <param name="backgroundJobId"/> documentation for "M:Hangfire.States.StateChangeContext.#ctor(Hangfire.JobStorage,Hangfire.Storage.IStorageConnection,System.String,Hangfire.States.IState,System.Collections.Generic.IEnumerable{System.String},System.Threading.CancellationToken)"]

newState
Type: Hangfire.StatesIState

[Missing <param name="newState"/> documentation for "M:Hangfire.States.StateChangeContext.#ctor(Hangfire.JobStorage,Hangfire.Storage.IStorageConnection,System.String,Hangfire.States.IState,System.Collections.Generic.IEnumerable{System.String},System.Threading.CancellationToken)"]

expectedStates
Type: System.Collections.GenericIEnumerableString

[Missing <param name="expectedStates"/> documentation for "M:Hangfire.States.StateChangeContext.#ctor(Hangfire.JobStorage,Hangfire.Storage.IStorageConnection,System.String,Hangfire.States.IState,System.Collections.Generic.IEnumerable{System.String},System.Threading.CancellationToken)"]

cancellationToken
Type: System.ThreadingCancellationToken

[Missing <param name="cancellationToken"/> documentation for "M:Hangfire.States.StateChangeContext.#ctor(Hangfire.JobStorage,Hangfire.Storage.IStorageConnection,System.String,Hangfire.States.IState,System.Collections.Generic.IEnumerable{System.String},System.Threading.CancellationToken)"]

See Also