public LoadImageService(IExternalImageServiceClient client, ICacheHelper cacheHelper, IOptions <IFictionConfiguration> configuration) { _client = client; _cacheHelper = cacheHelper; _configuration = configuration.Value; }
public ExternalImageServiceClient(IOptions <IFictionConfiguration> configuration, IRestClient restClient) { _configuration = configuration.Value; _restClient = restClient; _restClient.BaseUrl = new Uri(_configuration.ExternalImageService.ExternalImageServiceUrl); }