 | IBackgroundJobStateChangerChangeState Method |
Attempts to change the state of a job, respecting any applicable job filters and state handlers.
Namespace: Hangfire.StatesAssembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
SyntaxIState ChangeState(
StateChangeContext context
)
Function ChangeState (
context As StateChangeContext
) As IState
Parameters
- context
- Type: Hangfire.StatesStateChangeContext
[Missing <param name="context"/> documentation for "M:Hangfire.States.IBackgroundJobStateChanger.ChangeState(Hangfire.States.StateChangeContext)"]
Return Value
Type:
IStateNull if a constraint has failed, otherwise the final applied state
RemarksAlso ensures that the job data can be loaded for this job
See Also