protected void Application_Start() { GlobalConfiguration.Configure(WebApiConfig.Register); RegisterHandlers(); new AutoMapperConfigurator().Configure( WebContainerManager.GetAll <IAutoMapperTypeConfigurator>()); }
protected void Application_Start(object sender, EventArgs e) { new AutoMapperConfigurator().Config( WebContainerManager.GetAll <IAutoMapperTypeConfigurator>()); // see Thinktecture.IdentityModel.Web using PassiveSessionConfiguration.ConfigureMackineKeyProtectionForSessionTokens(); RegisterExceptionHandler(); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); FluentValidationModelValidatorProvider.Configure(); new AutoMapperConfigurator().Configure(WebContainerManager.GetAll <IAutoMapperTypeConfigurator>()); }
protected void Application_Start() { GlobalConfiguration.Configure(WebApiConfig.Register); RegisterHandlers(); try { new AutoMapperConfigurator().Configure(WebContainerManager.GetAll <IAutoMapperTypeConfigurator>()); } catch (Exception e) { _log.ErrorFormat("Application_Start:{0}", e.Message); } }