BetterHttpClient.ProxyManager.ProxyManager C# (CSharp) Метод

ProxyManager() публичный Метод

public ProxyManager ( IEnumerable proxies, bool anonymousOnly, BetterHttpClient.CheckService.ProxyJudgeService proxyJudgeService ) : System
proxies IEnumerable Proxy list
anonymousOnly bool Set true if you want to filter proxy list and use only anonymous only
proxyJudgeService BetterHttpClient.CheckService.ProxyJudgeService Proxy judge service is used to determine proxy anonymity level
Результат System
        public ProxyManager(IEnumerable<Proxy> proxies, bool anonymousOnly, ProxyJudgeService proxyJudgeService)
        {
            if (proxies == null || proxyJudgeService == null)
                throw new ArgumentNullException();
            foreach (Proxy proxy in proxies)
            {
                try
                {
                    _proxies.Add(proxy);
                }
                catch (UriFormatException)
                {
                    // parsing exception
                }
            }
            AnonymousProxyOnly = anonymousOnly;
            _proxyJudgeService = proxyJudgeService;
            _numberOfAttemptsPerRequest = _proxies.Count + 1;
            _proxyJudgeService.NumberOfAttempts = _numberOfAttempts;
        }
        public ProxyManager(string file) : this(File.ReadLines(file), false, new ProxyJudgeService()) { }

Same methods

ProxyManager::ProxyManager ( IEnumerable proxies, bool anonymousOnly, BetterHttpClient.CheckService.ProxyJudgeService proxyJudgeService ) : System
ProxyManager::ProxyManager ( string file ) : System
ProxyManager::ProxyManager ( string file, bool anonymousOnly ) : System
ProxyManager::ProxyManager ( string file, bool anonymousOnly, BetterHttpClient.CheckService.ProxyJudgeService service ) : System