private void SetAppcastURL() { String currentFeed = _preferences.getProperty("update.feed"); String feedUrl = _preferences.getProperty("update.feed." + currentFeed); Log.debug("Setting feed URL to " + feedUrl); WinSparkle.SetAppcastUrl(feedUrl); }
protected virtual void Dispose(bool disposing) { if (!disposedValue) { WinSparkle.Cleanup(); disposedValue = true; } }
public WinSparklePeriodicUpdateChecker(Controller controller) : base(controller) { // set app details WinSparkle.SetAppDetails( companyName: string.Empty, // auto read from assembly appName: _preferences.getProperty("application.name"), appVersion: _preferences.getProperty("application.version")); WinSparkle.SetAppBuildVersion(_preferences.getProperty("application.revision")); WinSparkle.SetAutomaticCheckForUpdates(false); WinSparkle.Initialize(); }
public override void check(bool background) { Log.debug($"Checking for updates, background= {background}"); SetAppcastURL(); if (background) { WinSparkle.CheckUpdateWithoutUi(); } else { WinSparkle.CheckUpdateWithUi(); } _preferences.setProperty("update.check.last", DateTime.Now.Ticks); }
public override Duration register() { WinSparkle.SetAutomaticCheckForUpdates(false); WinSparkle.Initialize(); return(base.register()); }
public static void SetShutdownRequestCallback(WinSparkle.win_sparkle_shutdown_request_callback_t callback) { WinSparkle.SetShutdownRequestCallback(callback); }
public static void SetCanShutdownCallback(WinSparkle.win_sparkle_can_shutdown_callback_t callback) { WinSparkle.SetCanShutdownCallback(callback); }
public override void unregister() { base.unregister(); WinSparkle.Cleanup(); }