Skip to content

Hypnobrew/Hangfire.Middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hangfire.Middleware

Middleware for HangfireIO to be used with dnx451/net451.

Can be used like:

public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IServiceProvider serviceProvider)
{
    ...
    app.UseHangfireServer();
    app.UseHangfireDashboard("/dashboard");
    RecurringJob.AddOrUpdate<MyService>(x => x.DoAction(), Cron.Minutely());
    ...
}

To use Dependecy injection in classes used by Hangfire, use the custom JobActivator class:

GlobalConfiguration.Configuration.UseActivator(new ContainerJobActivator(serviceProvider));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages