Add hangfire

This commit is contained in:
2016-02-22 09:55:57 -05:00
parent c2562949ec
commit 7a45225c29
4 changed files with 125 additions and 1 deletions
+9 -1
View File
@@ -1,4 +1,5 @@
using System.Web.Optimization;
using System;
using System.Web.Optimization;
using System.Web.Mvc;
using System.Web.Routing;
using LeafWeb.Core.DAL;
@@ -16,6 +17,13 @@ namespace LeafWeb.Web
BootstrapEditorTemplatesConfig.RegisterBundles();
DataService.RegisterInitializer();
HangfireBootstrapper.Instance.Start();
}
protected void Application_End(object sender, EventArgs e)
{
HangfireBootstrapper.Instance.Stop();
}
}
}