예제 #1
0
 public static void Stop()
 {
     try
     {
         _ProcessWatcher?.Deactivate();
         InfoDispatcher.Deacitvate();
         AppDomain.CurrentDomain.UnhandledException -= AppDomainUnhandledExceptionHandler;
     }
     catch (Exception ex)
     {
         Settings.Log?.Fatal(ex);
     }
 }
예제 #2
0
 public static void Start()
 {
     try
     {
         AppDomain.CurrentDomain.UnhandledException += AppDomainUnhandledExceptionHandler;
         Settings.Initialize();
         if (!string.IsNullOrWhiteSpace(Settings.Config.SharedDataFolder))
         {
             InfoDispatcher.Acitvate();
         }
         _ProcessWatcher = new ProcessWatcher();
     }
     catch (Exception ex)
     {
         Settings.Log?.Fatal(ex);
     }
 }