Ejemplo n.º 1
0
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);

            if (_AppInsights != null)
            {
                _AppInsights.Dispose();
            }

            if (_singleInstanceMutex != null)
            {
                GC.KeepAlive(_singleInstanceMutex);
            }
        }