| BackgroundJobClient Constructor (JobStorage, IBackgroundJobFactory, IBackgroundJobStateChanger) |
Initializes a new instance of the
BackgroundJobClient class
with the specified storage, background job factory and state changer.
Namespace: HangfireAssembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax public BackgroundJobClient(
[NotNullAttribute] JobStorage storage,
[NotNullAttribute] IBackgroundJobFactory factory,
[NotNullAttribute] IBackgroundJobStateChanger stateChanger
)
Public Sub New (
<NotNullAttribute> storage As JobStorage,
<NotNullAttribute> factory As IBackgroundJobFactory,
<NotNullAttribute> stateChanger As IBackgroundJobStateChanger
)
Parameters
- storage
- Type: HangfireJobStorage
Job storage to use for background jobs. - factory
- Type: Hangfire.ClientIBackgroundJobFactory
Factory to create background jobs. - stateChanger
- Type: Hangfire.StatesIBackgroundJobStateChanger
State changer to change states of background jobs.
Exceptions See Also