Beispiel #1
0
 /// <summary>
 /// Initializes the proxy pool given a collection of string to be parsed as proxies and their type.
 /// </summary>
 /// <param name="proxies">The collection of strings to parse the proxies from</param>
 /// <param name="type">The type of the proxies</param>
 /// <param name="shuffle">Whether to shuffle the proxy list</param>
 public ProxyPool(IEnumerable <string> proxies, Extreme.Net.ProxyType type, bool shuffle)
 {
     Proxies = proxies.Select(p => new CProxy(p, type)).ToList();
     if (shuffle)
     {
         Shuffle(Proxies);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Initializes the proxy pool given a collection of string to be parsed as proxies and their type.
 /// </summary>
 /// <param name="proxies">The collection of strings to parse the proxies from</param>
 /// <param name="type">The type of the proxies</param>
 public ProxyPool(IEnumerable <string> proxies, Extreme.Net.ProxyType type)
 {
     Proxies = proxies.Select(p => new CProxy(p, type)).ToList();
 }