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