protected void Application_Start() { AreaRegistration.RegisterAllAreas(); var container = new WindsorContainer(); var controllerFactory = new WindsorControllerFactory(container.Kernel); ControllerBuilder.Current.SetControllerFactory(controllerFactory); container.Install(FromAssembly.This()); container.Install(FromAssembly.Containing<IFacebookAuthenticationProvider>()); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); var container = new WindsorContainer(); var controllerFactory = new WindsorControllerFactory(container.Kernel); ControllerBuilder.Current.SetControllerFactory(controllerFactory); container.Install(FromAssembly.This()); container.Install(FromAssembly.Containing <IFacebookAuthenticationProvider>()); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); }