Files
LeafWeb/Web/Global.asax.cs
T
2016-11-07 12:56:17 -05:00

29 lines
674 B
C#

using System.Web.Optimization;using System;
using System.Web.Mvc;
using System.Web.Routing;
using LeafWeb.Core.DAL;
using LeafWeb.Web.App_Start;
namespace LeafWeb.Web
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
BootstrapEditorTemplatesConfig.RegisterBundles();
DataService.RegisterInitializer();
HangfireBootstrapper.Instance.Start();
}
protected void Application_End(object sender, EventArgs e)
{
HangfireBootstrapper.Instance.Stop();
}
}
}