Add hangfire
This commit is contained in:
+9
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user