Esempio n. 1
0
 /// <summary>
 /// 构造起始链接对象并添加到网站信息对象中
 /// </summary>
 /// <param name="site">网站信息</param>
 public override void Build(Site site)
 {
     for (int i = From; i <= To; i += Interval)
     {
         var request = new Request($"{Prefix}{i}{Postfix}");
         site.AddStartRequest(request);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 构造起始链接对象并添加到网站信息对象中
 /// </summary>
 /// <param name="site">网站信息</param>
 public override void Build(Site site)
 {
     for (var i = From; i <= To; i = i.AddDays(Interval))
     {
         var date    = i.ToString(DateFormateString);
         var request = new Request($"{Prefix}{date}{Postfix}");
         site.AddStartRequest(request);
     }
 }