public static IWindsorContainer GetContainer() { var locator = new ExtendedContainer(); var container = locator.Resolve<IWindsorContainer>(); // todo install registries container.Install(new EndpointRegistry()); return container; }
public ExtendedContainer() { Instance = this; InjectGod(); AddListResolver(); SetTransientAsDefaultLifestyle(); SetReleasePolicy(); RegisterCommonServiceLocator(); }
public virtual void Reset() { Instance = new ExtendedContainer(); }