Example #1
0
 /// <summary>
 /// Get proxy address
 /// </summary>
 /// <returns>The proxy address and port</returns>
 protected virtual string GetProxyAddress()
 {
     return(WebServiceConfig.GetProxyAddress());
 }
Example #2
0
 /// <summary>
 /// Gets a HTTP client based on configuration values
 /// </summary>
 /// <param name="baseAddress">Base service uri</param>
 /// <param name="timeout">Web service timeout</param>
 /// <returns>A HTTP client</returns>
 public static HttpClient GetClient(Uri baseAddress, TimeSpan timeout)
 {
     return(GetClient(baseAddress, timeout, WebServiceConfig.GetUseProxy(), WebServiceConfig.GetProxyAddress()));
 }