Esempio n. 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);
 }
Esempio n. 2
0
 /// <summary>
 /// Removes a process from the list of tracked processes.
 /// </summary>
 public void OnProcessExited()
 {
     ProcessManager.RemoveProcess(this);
 }