Example #1
0
 private ClassWithNestedReferencesToProvider(IServiceProvider serviceProvider, int level)
 {
     _serviceProvider = serviceProvider;
     if (level > 1)
     {
         _nested = new ClassWithNestedReferencesToProvider(_serviceProvider, level + 1);
     }
 }
 private ClassWithNestedReferencesToProvider(IServiceProvider serviceProvider, int level)
 {
     _serviceProvider = serviceProvider;
     if (level > 1)
     {
         _nested = new ClassWithNestedReferencesToProvider(_serviceProvider, level + 1);
     }
 }
Example #3
0
 public ClassWithNestedReferencesToProvider(IServiceProvider serviceProvider)
 {
     _serviceProvider = serviceProvider;
     _nested          = new ClassWithNestedReferencesToProvider(_serviceProvider, 0);
 }
 public ClassWithNestedReferencesToProvider(IServiceProvider serviceProvider)
 {
     _serviceProvider = serviceProvider;
     _nested = new ClassWithNestedReferencesToProvider(_serviceProvider, 0);
 }