 | DelayedJobScheduler Constructor (TimeSpan, IBackgroundJobStateChanger) |
Initializes a new instance of the
DelayedJobScheduler
class with a specified polling interval and given state changer.
Namespace: Hangfire.ServerAssembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntaxpublic DelayedJobScheduler(
TimeSpan pollingDelay,
[NotNullAttribute] IBackgroundJobStateChanger stateChanger
)
Public Sub New (
pollingDelay As TimeSpan,
<NotNullAttribute> stateChanger As IBackgroundJobStateChanger
)
Parameters
- pollingDelay
- Type: SystemTimeSpan
Delay between scheduler runs. - stateChanger
- Type: Hangfire.StatesIBackgroundJobStateChanger
State changer to use for background jobs.
Exceptions
See Also