Click or drag to resize
BackgroundJobClient Constructor (JobStorage, IBackgroundJobFactory, IBackgroundJobStateChanger)
Initializes a new instance of the BackgroundJobClient class with the specified storage, background job factory and state changer.

Namespace: Hangfire
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public BackgroundJobClient(
	[NotNullAttribute] JobStorage storage,
	[NotNullAttribute] IBackgroundJobFactory factory,
	[NotNullAttribute] IBackgroundJobStateChanger stateChanger
)

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
ExceptionCondition
ArgumentNullExceptionstorage is null.
ArgumentNullExceptionfactory is null.
ArgumentNullExceptionstateChanger is null.
See Also