Ejemplo n.º 1
0
        protected void Application_Start()
        {
            Dependencies.InitContainer(IoCInitializer.GetContainer(ApplicationType.Client));

            var castleControllerFactory = new CastleControllerFactory(Dependencies.Container);

            ControllerBuilder.Current.SetControllerFactory(castleControllerFactory);

            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AutoMapperConfiguration.Configure();
        }
Ejemplo n.º 2
0
 public void Configuration(IAppBuilder app)
 {
     Dependencies.InitContainer(IoCInitializer.GetContainer(ApplicationType.Service));
     AutoMapperConfiguration.Configure();
 }