예제 #1
0
        public IEnumerable <Proxy> GetRandomProxy(string region, string country, int hoursSinceTest)
        {
            var proxies = _services.GetProxies(region, country, hoursSinceTest);

            foreach (var proxy in proxies)
            {
                yield return(proxy);
            }
        }
예제 #2
0
        public IEnumerable <Proxy> GetProxies(bool working, string region, string country, int hoursSinceTest, int score)
        {
            var proxies = _services.GetProxies(working, region, country, hoursSinceTest, score);//.Take(64);

            foreach (var proxy in proxies)
            {
                yield return(proxy);
            }
        }