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);
     }
 }
 public ClassWithNestedReferencesToProvider(IServiceProvider serviceProvider)
 {
     _serviceProvider = serviceProvider;
     _nested          = new ClassWithNestedReferencesToProvider(_serviceProvider, 0);
 }
 public ClassWithNestedReferencesToProvider(IServiceProvider serviceProvider)
 {
     _serviceProvider = serviceProvider;
     _nested = new ClassWithNestedReferencesToProvider(_serviceProvider, 0);
 }