Beispiel #1
0
 public static void InitializeAll()
 {
     LoggingManagementService.Initialize();
     DictionaryManagementService.Initialize();
     IconManagementService.Initialize();
     TransmittingManagementService.Initialize();
     SubprocessManagementService.Initialize();
 }
Beispiel #2
0
        public static void ExitAll()
        {
            TransmittingManagementService.SendSignal(Signal.CommandParentExit, new[] { Process.GetCurrentProcess().Id.ToString() });

            Thread.Sleep(3000);

            try { TransmittingManagementService.Dispose(); } catch { /* ignored */ }
            try { SubprocessManagementService.Dispose(); } catch { /* ignored */ }
            try { IconManagementService.Dispose(); } catch { /* ignored */ }
            try { DictionaryManagementService.Dispose(); } catch { /* ignored */ }
            try { LoggingManagementService.Dispose(); } catch { /* ignored */ }
        }