Beispiel #1
0
    private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
    {
        Error((Exception)e.ExceptionObject);

        if (e.IsTerminating)
        {
            _queue?.ForceExecute();
            SaveNow();
        }
    }