public static IWindsorContainer Initialize() { var container = new WindsorContainer().Install(FromAssembly.This()); var controllerFactory = new WindsorControllerFactory(container.Kernel); ControllerBuilder.Current.SetControllerFactory(controllerFactory); RegisterHandlers(new CastleWindsorServiceLocator(container)); return container; }
public static IWindsorContainer Initialize() { var container = new WindsorContainer().Install(FromAssembly.This()); var controllerFactory = new WindsorControllerFactory(container.Kernel); ControllerBuilder.Current.SetControllerFactory(controllerFactory); RegisterHandlers(new CastleWindsorServiceLocator(container)); return(container); }