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);
		}
Esempio n. 2
0
        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);
        }