// 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; }
// 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; } } }
/// ----------------------------------------------------------------------------- /// <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; }
/// ----------------------------------------------------------------------------- /// <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; } }
/// ----------------------------------------------------------------------------- /// <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); }
protected override void InputProxyCredentials(IProxyCompatible proxyProtocol, ref bool retry) { MainComponent.InputProxyCredentials(proxyProtocol, ref retry); }