Click or drag to resize
BackgroundProcessingServer Class
Responsible for running the given collection background processes.
Inheritance Hierarchy
SystemObject
  Hangfire.ServerBackgroundProcessingServer

Namespace: Hangfire.Server
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public sealed class BackgroundProcessingServer : IBackgroundProcess, 
	IDisposable

The BackgroundProcessingServer type exposes the following members.

Constructors
  NameDescription
Public methodBackgroundProcessingServer(IEnumerableIBackgroundProcess)
Initializes a new instance of the BackgroundProcessingServer class
Public methodBackgroundProcessingServer(JobStorage, IEnumerableIBackgroundProcess)
Initializes a new instance of the BackgroundProcessingServer class
Public methodBackgroundProcessingServer(IEnumerableIBackgroundProcess, IDictionaryString, Object)
Initializes a new instance of the BackgroundProcessingServer class
Public methodBackgroundProcessingServer(JobStorage, IEnumerableIBackgroundProcess, IDictionaryString, Object)
Initializes a new instance of the BackgroundProcessingServer class
Public methodBackgroundProcessingServer(JobStorage, IEnumerableIBackgroundProcess, IDictionaryString, Object, BackgroundProcessingServerOptions)
Initializes a new instance of the BackgroundProcessingServer class and immediately starts all the given background processes.
Top
Methods
Fields
  NameDescription
Public fieldStatic memberDefaultShutdownTimeout
Top
Remarks
Immediately starts the processes in a background thread. Responsible for announcing/removing a server, bound to a storage. Wraps all the processes with a infinite loop and automatic retry. Executes all the processes in a single context. Uses timeout in dispose method, waits for all the components, cancel signals shutdown Contains some required processes and uses storage processes. Generates unique id. Properties are still bad.
See Also