Files
LeafWeb/WebCms/App_Start/RegisterServices.cs
T
2020-07-29 21:59:52 -04:00

24 lines
770 B
C#

using System.Web.Optimization;
using Backload.Bundles;
using LeafWeb.Core.DAL;
using Umbraco.Core;
namespace LeafWeb.WebCms.App_Start
{
public class RegisterServices : ApplicationEventHandler
{
// TODO: after upgrading Umbraco, this might be helpful
// protected override bool ExecuteWhenApplicationNotConfigured => true;
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
{
DataService.RegisterInitializer();
AutoMapperConfig.RegisterMappings();
HangfireBootstrapper.Instance.Start();
BackloadBundles.RegisterBundles(BundleTable.Bundles);
base.ApplicationStarted(umbracoApplication, applicationContext);
}
}
}