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); }
public IWebProxy GetProxy() { return(_proxyManager.GetProxy()); }