Beispiel #1
0
        public static void Close()
        {
            ConfigStorage.Instance.Save();
            ConfigStorage.Close();
            NHibernate.Mapping.Close();

            if (mutex != null && !mutex.SafeWaitHandle.IsClosed)
            {
                mutex.Close();
            }

            Log.Separator("Closed");
        }
Beispiel #2
0
        public static void Close()
        {
            ConfigStorage.Instance.Save();
            ConfigStorage.Close();
            NHibernate.Mapping.Close();

            if (mutex != null && !mutex.SafeWaitHandle.IsClosed)
            {
                mutex.Close();
            }

            if (!cancellationTokenSource.IsCancellationRequested)
            {
                cancellationTokenSource.Cancel();
            }

            Log.Separator("Closed");
        }