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