Hangfire configuration to always run
This commit is contained in:
@@ -45,6 +45,13 @@ namespace MileageTraker.Web
|
||||
ModelMetadataProviders.Current = new CustomMetadataProvider();
|
||||
|
||||
LogManager.GetCurrentClassLogger().Info("Application_Start()");
|
||||
|
||||
HangfireBootstrapper.Instance.Start();
|
||||
}
|
||||
|
||||
protected void Application_End(object sender, EventArgs e)
|
||||
{
|
||||
HangfireBootstrapper.Instance.Stop();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user