public void Stop() { Logger.Instance.Log4.Info($"ActivityMonitor: Stop"); // TELEMETRY: // what: when activity montioring is turned off // why: to understand how user trun activity monitoring on and off // how is PII protected: whether activity monitoring is on or off is not PII TelemetryService.Instance.TrackEvent("ActivityMonitor Stop"); if (_userActivityMonitor != null) { _userActivityMonitor.Dispose(); _userActivityMonitor = null; } if (_PresencePresumedTimer != null) { StopPresencePresumedTimer(); } if (UnlockDetection) { Microsoft.Win32.SystemEvents.SessionSwitch -= new Microsoft.Win32.SessionSwitchEventHandler(SystemEvents_SessionSwitch); } if (PowerBroadcastDetection) { StopPowerBroadcastDetection(); } }
public static void Stop() { Logger.Instance.Log4.Info($"ActivityMonitor: Stop"); // TELEMETRY: // what: when activity montioring is turned off // why: to understand how user trun activity monitoring on and off // how is PII protected: whether activity monitoring is on or off is not PII TelemetryService.Instance.TrackEvent("ActivityMonitor Stop"); if (_userActivityMonitor != null) { _userActivityMonitor.Dispose(); _userActivityMonitor = null; } }