コード例 #1
0
 public DependencyInjectionController(ITransientService transientService, IScopedService scopedService,
                                      ISingletonService singletonService, ISingletomInstanceService singletomInstanceService, IBigService bigService)
 {
     TransientService         = transientService;
     ScopedService            = scopedService;
     SingletonService         = singletonService;
     SingletomInstanceService = singletomInstanceService;
     BigService = bigService;
 }
コード例 #2
0
 public ValuesController(ITransientService transient1, ITransientService transient2, IScopedService scoped1, IScopedService scoped2, ISingletonService singleton1, ISingletonService singleton2)
 {
     Transient1 = transient1;
     Transient2 = transient2;
     Scoped1    = scoped1;
     Scoped2    = scoped2;
     Singleton1 = singleton1;
     Singleton2 = singleton2;
 }
コード例 #3
0
 public HomeController(ILogger <HomeController> logger,
                       ISingletonService singletonService,
                       IScopedService scopedService,
                       ITransientService transientService)
 {
     _logger           = logger;
     _singletonService = singletonService;
     _scopedService    = scopedService;
     _transientService = transientService;
 }