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