public override Task RunAsync()
        {
            if (string.IsNullOrEmpty(ProxyName))
            {
                ColoredConsole
                .Error
                .WriteLine(ErrorColor("Command must specify --name explicitly."));
                return(Task.CompletedTask);;
            }

            ColoredConsole
            .WriteLine()
            .WriteLine(_proxyManager.GetProxy(ProxyName));

            return(Task.CompletedTask);
        }
Exemplo n.º 2
0
 public IWebProxy GetProxy()
 {
     return(_proxyManager.GetProxy());
 }