public static IWindsorContainer CurrentContainer() { var bs = new ComponentsBootsrapper(); bs.Intialize(); Current = bs.container; return Current; }
public static void SetCurrentContainer() { var bs = new ComponentsBootsrapper(); CurrentContainer = bs.Intialize(); CurrentContainer.Install(FromAssembly.This()); var controllerFactory = new WindsorControllerFactory(CurrentContainer.Kernel); ControllerBuilder.Current.SetControllerFactory(controllerFactory); }