public FeChoiceServiceWrapper(IReferenceDataServiceSettings settings) { _settings = settings; _httpClient = new HttpClient(); _httpClient.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", _settings.ApiKey); }
public ReferenceDataServiceWrapper(IOptions <ReferenceDataServiceSettings> settings) { Throw.IfNull(settings, nameof(settings)); _settings = settings.Value; }