public void AddTimerTask(TimerTask task)
 {
     lock (this.dicTimerContent)
     {
         if (this.dicTimerContent.ContainsKey(task.Name))
         {
             this.dicTimerContent.Remove(task.Name);
         }
         this.dicTimerContent.Add(task.Name, task);
     }
 }
 public void AddTimerTask(TimerTask task)
 {
     lock (this.dicTimerContent)
     {
         if (this.dicTimerContent.ContainsKey(task.Name))
         {
             this.dicTimerContent.Remove(task.Name);
         }
         this.dicTimerContent.Add(task.Name, task);
     }
 }