Esempio n. 1
0
 public IEnumerable <EnvironmentVariable> GenerateEnvironmentVariables()
 => ProxyEnvironmentVariablesGenerator.GetProxyEnvironmentVariables(
     Host,
     Port,
     Username,
     Password
     );
Esempio n. 2
0
        public IEnumerable <EnvironmentVariable> GenerateEnvironmentVariables()
        => SystemWebProxyRetriever.GetSystemWebProxy().SelectValueOr(
            proxy =>
        {
            var proxyUri = proxy.GetProxy(TestUri);

            return(ProxyEnvironmentVariablesGenerator.GetProxyEnvironmentVariables(
                       proxyUri.Host,
                       proxyUri.Port,
                       Username,
                       Password));
        },
            Enumerable.Empty <EnvironmentVariable>()
            );