void StartTracking() { lock (trackingLocker) { if (isTracking) { return; } servers.OnServerStateChange += TrackingHandler; isTracking = true; } setting.DebugLog("Start tracking."); }
void StartTracking() { lock (trackingLocker) { if (isTracking) { return; } servers.OnCoreStop += OnCoreRunningStatChangeHandler; servers.OnCoreStart += OnCoreRunningStatChangeHandler; isTracking = true; } setting.DebugLog("Start tracking."); }
void StartTracking() { lock (trackingLocker) { if (isTracking) { return; } servers.OnCoreClosing += OnCoreClosingHandler; servers.OnCoreStart += OnCoreStartHandler; isTracking = true; } setting.DebugLog("Start tracking."); }
public void Cleanup() { setting.DebugLog("call Luncher.cleanup"); setting.isCleaning = true; formMain?.Close(); serverTracker.Cleanup(); pacServer.Cleanup(); setting.Cleanup(); Lib.Sys.ProxySetter.UpdateProxySettingOnDemand(orgSysProxySetting); FileLogger.Info("ProxySetter: restore sys proxy settings"); }
public void Cleanup() { setting.DebugLog("call Luncher.cleanup"); setting.isCleaning = true; serverTracker.OnSysProxyChanged -= UpdateMenuItemCheckedStatHandler; VgcApis.Misc.UI.CloseFormIgnoreError(formMain); serverTracker.Cleanup(); pacServer.Cleanup(); setting.Cleanup(); Libs.Sys.ProxySetter.UpdateProxySettingOnDemand(orgSysProxySetting); FileLogger.Info("ProxySetter: restore sys proxy settings"); }
public void Cleanup() { Microsoft.Win32.SystemEvents.SessionEnding += SessionEndingHandler; FileLogger.Info("ProxySetting.Cleanup() begin"); setting.SetIsDisposing(true); setting.DebugLog("call Luncher.cleanup"); serverTracker.OnSysProxyChanged -= UpdateMenuItemCheckedStatHandler; VgcApis.Misc.UI.CloseFormIgnoreError(formMain); serverTracker.Cleanup(); pacServer.Cleanup(); setting.Cleanup(); FileLogger.Info("ProxySetter: restore sys proxy settings"); Libs.Sys.ProxySetter.UpdateProxySettingOnDemand(orgSysProxySetting); FileLogger.Info("ProxySetter.Cleanup() done"); }