Hangfire configuration to always run

This commit is contained in:
2015-11-04 00:14:22 -05:00
parent 5651c2876d
commit 42f0c12249
3 changed files with 72 additions and 3 deletions
+7
View File
@@ -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();
}
}