protected void Application_Start(object sender, EventArgs e) { AreaRegistration.RegisterAllAreas(); AutoMapperConfig.RegisterMappings(); UnityConfig.RegisterComponents(); GlobalConfiguration.Configure(WebApiConfig.Register); ApplicationPreload.StartJobProcessor(); TlsHelper.AllowTls12(); XmlConfigurator.Configure(new FileInfo(Server.MapPath("~/Web.config"))); }
protected void Application_End(object sender, EventArgs e) { ApplicationPreload.StopJobProcessor(); }