/// <summary>
        /// Adds the authenticated proy.
        /// </summary>
        public void AddAuthenticatedProy()
        {
            MyProxyInfo myProxyInfo   = new MyProxyInfo();
            string      proxyUsername = myProxyInfo.ProxyUsername;
            string      proxyPassword = myProxyInfo.ProxyPassword;

            connectionString += $"ProxyUri=http://localhost:8080 ; ProxyUsername={proxyUsername}; ProxyPassword={proxyPassword};";
        }
Exemplo n.º 2
0
        internal void AddAuthenticatedProyCredentialCache()
        {
            MyProxyInfo myProxyInfo = new MyProxyInfo(MyProxyInfo.NEOTUNNEL_SAVE_TXT);
            String      username    = myProxyInfo.ProxyUsername;
            String      password    = myProxyInfo.ProxyPassword;

            CredentialCache.DefaultNetworkCredentials.UserName = username;
            CredentialCache.DefaultNetworkCredentials.Password = password;

            AceQLConnection.SetDefaultWebProxy(WebRequest.GetSystemWebProxy());
            connectionString += $"UseCredentialCache=True;";
        }