Beispiel #1
0
 private static void ForceLoadProxy(WeespinClub.Data.User account)
 {
     try
     {
         Task.Run(() =>
         {
             var currentprox = ProxyPool[new Random().Next(ProxyPool.Count)];
             account.proxy   = new Proxy(currentprox.IP, ushort.Parse(currentprox.port));
             ProxyPool.Remove(currentprox);
             Debug.WriteLine(ProxyPool.Count);
         });
     }
     catch (Exception e)
     {
         ForceLoadProxy(account);
     }
 }