private void DoMaintenance_OnceOff(Daemon daemon) { if (daemon.StillRunning) { // KICK THEM OFF try { StartupCommandLineParameterChecker.Check(); } catch (Exception ex) { Logging.Error(ex, "Exception during StartupCommandLineParameterChecker.Check"); } InitClientUpdater(); try { AlternativeToReminderNotification.CheckIfWeWantToNotify(); } catch (Exception ex) { Logging.Error(ex, "Exception during AlternativeToReminderNotification.CheckIfWeWantToNotify"); } try { DropboxChecker.DoCheck(); } catch (Exception ex) { Logging.Error(ex, "Exception during DropboxChecker.DoCheck"); } try { AutoImportFromMendeleyChecker.DoCheck(); } catch (Exception ex) { Logging.Error(ex, "Exception during AutoImportFromMendeleyChecker.DoCheck"); } try { AutoImportFromEndnoteChecker.DoCheck(); } catch (Exception ex) { Logging.Error(ex, "Exception during AutoImportFromEndnoteChecker.DoCheck"); } // hold off: level 1 -> 0 MaintainableManager.Instance.BumpHoldOffPendingLevel(); } // We only want this to run once daemon.Stop(); }
void DoMaintenance_OnceOff(Daemon daemon) { if (daemon.StillRunning) { // KICK THEM OFF try { StartupCommandLineParameterChecker.Check(); } catch (Exception ex) { Logging.Error(ex, "Exception during StartupCommandLineParameterChecker.Check"); } try { ClientUpdater.Init("Qiqqa", Icons.Upgrade, WebsiteAccess.GetOurFileUrl(WebsiteAccess.OurSiteFileKind.ClientVersion), WebsiteAccess.GetOurFileUrl(WebsiteAccess.OurSiteFileKind.ClientSetup), WebsiteAccess.IsTestEnvironment, ShowReleaseNotes); ClientUpdater.Instance.CheckForNewClientVersion(ConfigurationManager.Instance.Proxy); } catch (Exception ex) { Logging.Error(ex, "Exception during Utilities.ClientVersioning.ClientUpdater.Instance.CheckForNewClientVersion"); } try { AlternativeToReminderNotification.CheckIfWeWantToNotify(); } catch (Exception ex) { Logging.Error(ex, "Exception during AlternativeToReminderNotification.CheckIfWeWantToNotify"); } try { DropboxChecker.DoCheck(); } catch (Exception ex) { Logging.Error(ex, "Exception during DropboxChecker.DoCheck"); } try { AutoImportFromMendeleyChecker.DoCheck(); } catch (Exception ex) { Logging.Error(ex, "Exception during AutoImportFromMendeleyChecker.DoCheck"); } try { AutoImportFromEndnoteChecker.DoCheck(); } catch (Exception ex) { Logging.Error(ex, "Exception during AutoImportFromEndnoteChecker.DoCheck"); } } // We only want this to run once daemon.Stop(); }