//根据Url地址得到网页的html源码 public string GetWebContent(QueueModel model) { if (wait > 0) { lock (obj) { Thread.Sleep(wait); return(GetHmltContent(model)); } } else { return(GetHmltContent(model)); } }
/// <summary> /// 将任务添加至队列 /// </summary> /// <param name="Url"></param> public void EnQueue(QueueModel Que) { this.queue.Enqueue(Que); }