HangFire background job activator based on Castle Windsor IoC Container.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.nuget
HangFire.Windsor.Tests
HangFire.Windsor
.gitignore
HangFire.Windsor.sln
License.txt
README.md

README.md

HangFire.Windsor

HangFire background job activator based on Castle Windsor IoC Container. Installation

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

Install-Package HangFire.Windsor

Usage

In order to use the library, you should register it as your JobActivator class:

// Global.asax.cs or other file that initializes Windsor bindings.
public partial class MyApplication : System.Web.HttpApplication
{
    private WindsorContainer _container;

    protected void Application_Start()
    {
    	_container = new WindsorContainer();            

    	/* Register types */
    	/* _container.Register(Component.For<ISomeInterface>().ImplementedBy<SomeImplementation>()); */
		
	JobActivator.Current = new WindsorJobActivator(_container.Kernel);
    }
}

Disclaimer

This is pretty much a conversion of HangFire.Ninject including this Readme!