예제 #1
0
 // change to RemoveTimer later
 public void DeleteTimer(ITimeHandler handler)
 {
     if (timers.Contains(handler))
     {
         timers.Remove(handler);
     }
 }
예제 #2
0
 public void AddTimer(ITimeHandler handler)
 {
     if (CheckTimer(handler))
     {
         return;
     }
     else
     {
         timers.Add(handler);
     }
 }
예제 #3
0
 public bool CheckTimer(ITimeHandler handler)
 {
     if (timers.Contains(handler))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #4
0
 public RequestClient(ILogger <RequestClient> logger, ITimeHandler timeHandler)
 {
     _logger      = logger;
     _timeHandler = timeHandler;
 }