Exemplo n.º 1
0
 public IEnumerable <EnvironmentVariable> GenerateEnvironmentVariables()
 => ProxyEnvironmentVariablesGenerator.GetProxyEnvironmentVariables(
     Host,
     Port,
     Username,
     Password
     );
Exemplo 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>()
            );