Click or drag to resize
IBackgroundJobStateChangerChangeState Method
Attempts to change the state of a job, respecting any applicable job filters and state handlers.

Namespace: Hangfire.States
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
IState ChangeState(
	StateChangeContext context
)

Parameters

context
Type: Hangfire.StatesStateChangeContext

[Missing <param name="context"/> documentation for "M:Hangfire.States.IBackgroundJobStateChanger.ChangeState(Hangfire.States.StateChangeContext)"]

Return Value

Type: IState
Null if a constraint has failed, otherwise the final applied state
Remarks
Also ensures that the job data can be loaded for this job
See Also