private void StopMonitor() { if (Context.Settings.Security.KioskMode != KioskMode.None) { monitor.Stop(); } }
public void Stop(bool immediate) { if (_appMonitors != null) { IApplicationMonitor pbMonitor = _appMonitors.MemoryMonitor; if (pbMonitor != null) { pbMonitor.Stop(); pbMonitor.Dispose(); } } HostingEnvironment.UnregisterObject(this); }