Пример #1
0
 private void StopMonitor()
 {
     if (Context.Settings.Security.KioskMode != KioskMode.None)
     {
         monitor.Stop();
     }
 }
Пример #2
0
            public void Stop(bool immediate)
            {
                if (_appMonitors != null)
                {
                    IApplicationMonitor pbMonitor = _appMonitors.MemoryMonitor;
                    if (pbMonitor != null)
                    {
                        pbMonitor.Stop();
                        pbMonitor.Dispose();
                    }
                }

                HostingEnvironment.UnregisterObject(this);
            }