public object GetTopUrl(string name, int index, int count = 20)
        {
            TimeConuter timeConuter = this.Items.FirstOrDefault((TimeConuter p) => p.Name == name);

            if (timeConuter != null)
            {
                return(timeConuter.GetTopUrl(index, count));
            }
            return(new object[0]);
        }
 private void OnTrack(object state)
 {
     this.mTimer.Change(-1, -1);
     try
     {
         DateTime now = DateTime.Now;
         if (now.Day != this.mDay)
         {
             this.Save();
             if (this.CurrentItem != null)
             {
                 this.CurrentItem.SaveUrlDetail();
             }
             this.OnCreateItems();
         }
         int num = now.Hour * 2;
         if (now.Minute >= 30)
         {
             num++;
         }
         TimeConuter timeConuter = this.Items[num];
         if (timeConuter != this.CurrentItem)
         {
             this.Save();
             if (this.CurrentItem != null)
             {
                 this.CurrentItem.SaveUrlDetail();
             }
             this.CurrentItem = timeConuter;
         }
     }
     catch (Exception ex)
     {
         if (this.Gateway.HttpServer.EnableLog(BeetleX.EventArgs.LogType.Error))
         {
             this.Gateway.HttpServer.Log(BeetleX.EventArgs.LogType.Error, string.Concat(new string[]
             {
                 "Gateway ",
                 this.Name,
                 " day counter error ",
                 ex.Message,
                 "@",
                 ex.StackTrace
             }));
         }
     }
     finally
     {
         this.mTimer.Change(999, 999);
     }
 }