Ejemplo n.º 1
0
        protected void Application_Start()
        {
            // Configures Web API 2
            GlobalConfiguration.Configure(WebApiConfig.Register);

            // Dependency injection
            AutofacConfig.ConfigureContainer();
        }
Ejemplo n.º 2
0
        protected void Application_Start()
        {
            AutofacConfig.ConfigureContainer();
            MapperConfiguration = AutoMapperWebApiConfiguration.GetConfiguration();
            AreaRegistration.RegisterAllAreas();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            log4net.Config.XmlConfigurator.Configure();
        }