Exemplo n.º 1
0
        byte[] downData(string url)
        {
            var wc = new Webc(5 * 1000);

            try
            {
                return(wc.DownloadData(url));
            }
            catch
            {
                Thread.Sleep(3 * 1000);
                return(downData(url));
            }
        }
Exemplo n.º 2
0
        byte[] downData(string url)
        {
            var wc = new Webc(5 * 1000);

            try
            {
                var fg = Tools.GetRandNext(0, 7);
                return(wc.DownloadData(url.Replace("{sw}", fg + "")));
            }
            catch (Exception ex)
            {
                Debug.WriteLine("down:err->" + ex.Message);
                Thread.Sleep(3 * 1000);
                return(downData(url));
            }
        }