private static SetProxyIfAvailableAndConfigured ( IClientConfig config, |
||
config | IClientConfig | |
httpWebRequest | ||
return | void |
private static void SetProxyIfAvailableAndConfigured(IClientConfig config, HttpWebRequest httpWebRequest)
{
#if BCL || UNITY || CORECLR
var proxy = GetProxyIfAvailableAndConfigured(config);
if (proxy != null)
{
httpWebRequest.Proxy = proxy;
}
#endif
}