Example #1
0
// ReSharper disable RedundantAssignment
        protected virtual void InputProxyCredentials(IProxyCompatible proxyProtocol, ref bool retry)
// ReSharper restore RedundantAssignment
        {
            Log(Strings.PROXY_AUTH_REQUESTED, ESeverity.INFO);
            var username = InputString(Strings.INPUT_PROXY_USERNAME, false);
            var password = InputString(Strings.INPUT_PROXY_PASSWORD, true);
            var domain   = InputString(Strings.INPUT_PROXY_DOMAIN, false);

            proxyProtocol.Proxy.Credentials = new NetworkCredential(username, password, domain);
            retry = true;
        }
Example #2
0
// ReSharper disable RedundantAssignment
        public void InputProxyCredentials(IProxyCompatible proxyProtocol, ref bool retry)
// ReSharper restore RedundantAssignment
        {
            using (var proxy = new ProxyForm(_client.ClientConfig))
            {
                if (proxy.ShowDialog() == DialogResult.OK)
                {
                    proxyProtocol.Proxy.Credentials = new NetworkCredential(_client.ClientConfig.ProxyUserName,
                                                                            _client.ClientConfig.ProxyPassword,
                                                                            _client.ClientConfig.ProxyDomain);
                    retry = true;
                }
                else
                {
                    retry = false;
                }
            }
        }
Example #3
0
        /// -----------------------------------------------------------------------------
        /// <summary>
        /// Saisie des informations d'authentification sur le proxy
        /// </summary>
        /// <param name="proxyProtocol">le protocol IProxyCompatible à alterer</param>
        /// <param name="retry">pour permettre les essais multiples</param>
        /// -----------------------------------------------------------------------------
// ReSharper disable RedundantAssignment
        protected virtual void InputProxyCredentials (IProxyCompatible proxyProtocol, ref bool retry)
// ReSharper restore RedundantAssignment
        {
            Log(Strings.PROXY_AUTH_REQUESTED, ESeverity.INFO);
            var username = InputString(Strings.INPUT_PROXY_USERNAME, false);
            var password = InputString(Strings.INPUT_PROXY_PASSWORD, true);
            var domain = InputString(Strings.INPUT_PROXY_DOMAIN, false);

            proxyProtocol.Proxy.Credentials = new NetworkCredential(username, password, domain);
            retry = true;
        }
Example #4
0
        /// -----------------------------------------------------------------------------
        /// <summary>
        /// Saisie des informations d'authentification sur le proxy
        /// </summary>
        /// <param name="proxyProtocol">le protocol IProxyCompatible à alterer</param>
        /// <param name="retry">pour permettre les essais multiples</param>
        /// -----------------------------------------------------------------------------
// ReSharper disable RedundantAssignment
        public void InputProxyCredentials(IProxyCompatible proxyProtocol, ref bool retry)
// ReSharper restore RedundantAssignment
        {
            using (var proxy = new ProxyForm(_client.ClientConfig))
            {
	            if (proxy.ShowDialog() == DialogResult.OK)
	            {
		            proxyProtocol.Proxy.Credentials = new NetworkCredential(_client.ClientConfig.ProxyUserName,
		                                                                    _client.ClientConfig.ProxyPassword,
		                                                                    _client.ClientConfig.ProxyDomain);
		            retry = true;
	            }
	            else
		            retry = false;
            }
        }
Example #5
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// Saisie des informations d'authentification sur le proxy
 /// </summary>
 /// <param name="proxyProtocol">le protocol IProxyCompatible à alterer</param>
 /// <param name="retry">pour permettre les essais multiples</param>
 /// -----------------------------------------------------------------------------
 protected override void InputProxyCredentials (IProxyCompatible proxyProtocol, ref bool retry)
 {
     MainComponent.InputProxyCredentials(proxyProtocol, ref retry);
 }
Example #6
0
 protected override void InputProxyCredentials(IProxyCompatible proxyProtocol, ref bool retry)
 {
     MainComponent.InputProxyCredentials(proxyProtocol, ref retry);
 }