Beispiel #1
0
 /// <summary>
 /// Get a new http client
 /// </summary>
 /// <returns>A new http client</returns>
 protected virtual HttpClient GetHttpClient()
 {
     return(HttpClientFactory.GetClient(this.GetBaseWebServiceUri(), WebServiceConfig.GetWebServiceTimeout(), this.GetUseProxy(), this.GetProxyAddress()));
 }
Beispiel #2
0
 /// <summary>
 /// Gets a HTTP client based on configuration values
 /// </summary>
 /// <returns>A HTTP client</returns>
 public static HttpClient GetDefaultClient()
 {
     return(GetClient(new Uri(WebServiceConfig.GetWebServiceUri()), WebServiceConfig.GetWebServiceTimeout()));
 }