byte[] downData(string url) { var wc = new Webc(5 * 1000); try { return(wc.DownloadData(url)); } catch { Thread.Sleep(3 * 1000); return(downData(url)); } }
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)); } }