public ExampleB(IServiceLocator ioc) { a = ioc.GetInstance <IExampleA>(); }
public RecursiveNonCyclicB(IServiceLocator ioc) { // call GetInstance when we're already resolving this from the same container. a = ioc.GetInstance <IExampleA>(); }