Hangfire job activator based on Spring.Net IoC container
C#
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Hangfire.SpringNet
.gitignore
Hangfire.SpringNet.nupkg
Hangfire.SpringNet.sln
LICENSE
README.md
nuget.exe

README.md

Hangfire.SpringNet

Hangfire job activator based on Spring.Net IoC container

Spring.Net integration for Hangfire. Provides an implementation of the JobActivator class, allowing you to use Spring.Net container to resolve job type instances.

Hangfire.SpringNet resolves service instances.

Installation

Hangfire.SpringNet is available as a NuGet Package. Type the following command into NuGet Package Manager Console window to install it:

Install-Package Hangfire.SpringNet

Usage

The package provides an extension methods for the IGlobalConfiguration interface, so you can enable Spring.Net integration using the GlobalConfiguration class:

Spring.Context.IApplicationContext context = Spring.Context.Support.ContextRegistry.GetContext();
GlobalConfiguration.Configuration.UseSpringActivator(context);

After invoking the UseSpringActivator method, Spring.Net-based implementation of the JobActivator class will be used to resolve job type instances during the background job processing.

Also be aware that many web related properties that you may be using such as HttpContext.Current will not be available.