Click or drag to resize
DelayedJobScheduler Constructor (TimeSpan, IBackgroundJobStateChanger)
Initializes a new instance of the DelayedJobScheduler class with a specified polling interval and given state changer.

Namespace: Hangfire.Server
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public DelayedJobScheduler(
	TimeSpan pollingDelay,
	[NotNullAttribute] IBackgroundJobStateChanger stateChanger
)

Parameters

pollingDelay
Type: SystemTimeSpan
Delay between scheduler runs.
stateChanger
Type: Hangfire.StatesIBackgroundJobStateChanger
State changer to use for background jobs.
Exceptions
ExceptionCondition
ArgumentNullExceptionstateChanger is null.
See Also