示例#1
0
 /// <summary>
 /// This is the main method that runs as a thread. CacheManager does all sorts of house
 /// keeping tasks in that method.
 /// </summary>
 public override void Run()
 {
     if (_parent == null)
     {
         return;
     }
     try
     {
         bool expired = _parent.Expire();
     }
     catch (Exception)
     {
     }
 }
示例#2
0
 /// <summary>
 /// This is the main method that runs as a thread. CacheManager does all sorts of house
 /// keeping tasks in that method.
 /// </summary>
 void TimeScheduler.Task.Run()
 {
     if (_parent == null)
     {
         return;
     }
     try
     {
         bool expired = _parent.Expire();
     }
     catch (Exception)
     {
     }
 }