public MyFunction(
     IMyService myService,
     IAnotherService anotherService,
     INestedService nestedService)
 {
     this.myService      = myService;
     this.anotherService = anotherService;
     this.nestedService  = nestedService;
 }
Exemplo n.º 2
0
 public AppHost(ILoggerFactory loggerFactory, IInjectedService injectedService, INestedService nestedService)
 {
     _logger          = loggerFactory.CreateLogger <AppHost>();
     _injectedService = injectedService;
     _nestedService   = nestedService;
 }
Exemplo n.º 3
0
 public InjectedService(INestedService nestedService, ILoggerFactory loggerFactory, IConfigurationRoot config)
 {
     _nestedService = nestedService;
     _logger        = loggerFactory.CreateLogger <InjectedService>();
     _config        = config;
 }
 public RootService(Func <string, INestedService> nestedServiceFactory)
 {
     NestedService = nestedServiceFactory("ConnectionStringHere");
 }