public GlobalRestClient(IServiceConfiguration _serviceConfiguration) { serviceConfiguration = _serviceConfiguration?.GetServiceConfiguration(); _httpClient = new HttpClient(new NativeMessageHandler()) { BaseAddress = new Uri(serviceConfiguration["BaseAddress"]) }; _httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(serviceConfiguration["Accept"])); }
public LoginServiceCall(IServiceConfiguration serviceConfiguration) { _serviceConfiguration = serviceConfiguration.GetServiceConfiguration(); _globalClient = new GlobalRestClient(serviceConfiguration); }