예제 #1
0
 public void Dispose()
 {
     Log.TraceInformation("WatchdogTimer.Dispose()");
     lock (SyncObject)
     {
         if (CountownTimer != null)
         {
             CountownTimer.Stop();
             CountownTimer.Dispose();
             CountownTimer = null;
         }
         bTicking = false;
     }
     ProcessManager.RemoveProcess(this);
 }
예제 #2
0
 /// <summary>
 /// Removes a process from the list of tracked processes.
 /// </summary>
 public void OnProcessExited()
 {
     ProcessManager.RemoveProcess(this);
 }