Esempio n. 1
0
 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"]));
 }
Esempio n. 2
0
 public LoginServiceCall(IServiceConfiguration serviceConfiguration)
 {
     _serviceConfiguration = serviceConfiguration.GetServiceConfiguration();
     _globalClient         = new GlobalRestClient(serviceConfiguration);
 }