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