Пример #1
0
        public override void Configure()
        {
            SystemProxy.ProxyConfigurator pc = new SystemProxy.ProxyConfigurator();

            string bypassList = null;

            if (bypassLocalAddresses.HasValue || exceptions != null)
            {
                bypassList = "";

                if (exceptions != null)
                {
                    bypassList += exceptions;
                }

                if (bypassLocalAddresses.HasValue && bypassLocalAddresses == true)
                {
                    if (bypassList.Length > 0)
                    {
                        bypassList += ";";
                    }

                    bypassList += "<local>";
                }
            }

            pc.SetProxy(proxyAddress, bypassList);
        }
Пример #2
0
 public override void Configure()
 {
     SystemProxy.ProxyConfigurator pc = new SystemProxy.ProxyConfigurator();
     pc.SetProxyPac(pacFile);
 }
Пример #3
0
 public override void Configure()
 {
     SystemProxy.ProxyConfigurator pc = new SystemProxy.ProxyConfigurator();
     pc.ResetProxy();
 }
Пример #4
0
 public override void Configure()
 {
     SystemProxy.ProxyConfigurator pc = new SystemProxy.ProxyConfigurator();
     pc.SetProxyPac(pacFile);
 }
Пример #5
0
 public override void Configure()
 {
     SystemProxy.ProxyConfigurator pc = new SystemProxy.ProxyConfigurator();
     pc.ResetProxy();
 }
Пример #6
0
        public override void Configure()
        {
            SystemProxy.ProxyConfigurator pc = new SystemProxy.ProxyConfigurator();

            string bypassList = null;

            if (bypassLocalAddresses.HasValue || exceptions != null)
            {
                bypassList = "";

                if (exceptions != null)
                {
                    bypassList += exceptions;
                }

                if (bypassLocalAddresses.HasValue && bypassLocalAddresses == true)
                {
                    if (bypassList.Length > 0)
                    {
                        bypassList += ";";
                    }

                    bypassList += "<local>";
                }
            }

            pc.SetProxy(proxyAddress, bypassList);
        }