Hangfire job activator based on Funq
Switch branches/tags
Nothing to show
Clone or download
Latest commit 1634d80 Aug 31, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.nuget First commit Aug 13, 2015
Hangfire.Funq.Tests First commit Aug 13, 2015
Hangfire.Funq First commit Aug 13, 2015
global First commit Aug 13, 2015
.gitignore First commit Aug 13, 2015
Hangfire.Funq.sln First commit Aug 13, 2015
README.md Update README.md Aug 31, 2015

README.md

Hangfire.Funq

Hangfire job activator based on Funq IoC Container. Installation

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

Install-Package Hangfire.Funq

Usage

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

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

    protected void Application_Start()
    {
      _container = new Funq.Container();
      
      /* Register Types */
      _container.Register<Foo>(c => new Foo());
      
      GlobalConfiguration.Configuration.UseFunqActivator(_container);
    }
}