System.Net.ProxyRegBlob.GetWebProxyData C# (CSharp) Method

GetWebProxyData() private method

private GetWebProxyData ( string connectoid ) : WebProxyData
connectoid string
return WebProxyData
        internal static WebProxyData GetWebProxyData(string connectoid)
        {
            GlobalLog.Print("ProxyRegBlob::GetWebProxyData() connectoid:" + ValidationHelper.ToString(connectoid));
            WebProxyData webProxyData = new WebProxyData();
            Hashtable proxyHashTable = null;
            Uri address = null;

            string proxyAddressString = ReadConfigString("ProxyUri");
            string proxyBypassString = ReadConfigString("ProxyBypass");
            try {
                address = ParseProxyUri(proxyAddressString, true);
                if ( address == null ) {
                    proxyHashTable = ParseProtocolProxies(proxyAddressString);
                }
                if ((address != null || proxyHashTable != null) && proxyBypassString != null ) {
                    webProxyData.bypassList = ParseBypassList(proxyBypassString, out webProxyData.bypassOnLocal);
                }
                // success if we reach here
            }
            catch {
            }

            if (proxyHashTable!=null) {
                address = proxyHashTable["http"] as Uri;
            }
            webProxyData.proxyAddress = address;

            return webProxyData;
        }