public override void Load() { using (var httpClient = new HttpClient()) { httpClient.DefaultRequestHeaders.Add("x-api-key", _apiKey); var data = httpClient.GetStringAsync(ConfigServiceuri).Result; if (data != null) { Data = new CustomJsonConfigurationFileParser().Parse(new MemoryStream(Encoding.UTF8.GetBytes(data))); } } }