//public IProxy RandomProxy() //{ // if (_proxies.Count > 0) // { // IProxy p = _proxies.ToList()[_rndm.Next(0, _proxies.Count())]; // UnmanagedProxy.ChangeProxy(p); // return p; // } // return new Proxy(); //} public IProxy RandomProxy() => Proxies.Count > 0 ? UnmanagedProxy.ChangeProxy(Proxies.ToList()[_rndm.Next(0, Proxies.Count())]) : new Proxy();
public void DisableProxy() => UnmanagedProxy.DisableProxy();