Beispiel #1
0
 public DependencyResolutionException(IServiceProvider services)
 {
     this.services  = services;
     this.tenant1   = services.GetService <DepPerTenant>();;
     this.singleton = services.GetService <DepSingleton>();
     this.scoped    = services.GetService <DepScoped>();
 }
Beispiel #2
0
 public Test3Controller(
     IServiceProvider services,
     DepSingleton singleton,
     DepScoped scoped)
 {
     this.singleton = singleton;
     this.scoped    = scoped;
     this.services  = services;
 }
Beispiel #3
0
 public Test1Controller(
     IServiceProvider services,
     DepSingleton singleton,
     DepPerTenant tenant1,
     DepScoped scoped)
 {
     this.tenant1   = tenant1;
     this.singleton = singleton;
     this.scoped    = scoped;
     this.services  = services;
 }