public ImageService(IImageMetadataRepository imageMetadataRepository, IHttpClientFactory clientFactory, IServiceProvider serviceProvider, IOptions <List <MongoDBHostConfig> > mongoDBHostConfigs, ILogger <ImageService> logger) { _logger = logger; _clientFactory = clientFactory; _serviceProvider = serviceProvider; _mongoDBHostConfigs = mongoDBHostConfigs.Value; _imageMetadataRepository = imageMetadataRepository; }
public ValuesController(IImageMetadataRepository imageMetadataRepository, IHttpClientFactory clientFactory, IServiceProvider serviceProvider, IOptions <List <MongoDBHostConfig> > mongoDBHostConfigs, ILogger <ValuesController> logger, IImageService imageService) { _imageMetadataRepository = imageMetadataRepository; }