public MyFunction( IMyService myService, IAnotherService anotherService, INestedService nestedService) { this.myService = myService; this.anotherService = anotherService; this.nestedService = nestedService; }
public AppHost(ILoggerFactory loggerFactory, IInjectedService injectedService, INestedService nestedService) { _logger = loggerFactory.CreateLogger <AppHost>(); _injectedService = injectedService; _nestedService = nestedService; }
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"); }