예제 #1
0
 protected void Application_Start()
 {
     GlobalConfiguration.Configure(WebApiConfig.Register);
     RegisterHandlers();
     new AutoMapperConfigurator().Configure(
         WebContainerManager.GetAll <IAutoMapperTypeConfigurator>());
 }
예제 #2
0
        protected void Application_Start(object sender, EventArgs e)
        {
            new AutoMapperConfigurator().Config(
                WebContainerManager.GetAll <IAutoMapperTypeConfigurator>());

            // see Thinktecture.IdentityModel.Web using
            PassiveSessionConfiguration.ConfigureMackineKeyProtectionForSessionTokens();

            RegisterExceptionHandler();
        }
예제 #3
0
        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>());
        }
예제 #4
0
 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);
     }
 }