Click or drag to resize
BackgroundJobRequeue Method (String, String)
Changes state of a job with the specified jobId to the EnqueuedState. If fromState value is not null, state change will be performed only if the current state name of a job equal to the given value.

Namespace: Hangfire
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public static bool Requeue(
	[NotNullAttribute] string jobId,
	[CanBeNullAttribute] string fromState
)

Parameters

jobId
Type: SystemString
Identifier of job, whose state is being changed.
fromState
Type: SystemString
Current state assertion, or null if unneeded.

Return Value

Type: Boolean
True, if state change succeeded, otherwise false.
See Also