Exemple #1
0
        public static async Task <bool> EnsureUpdatedAsync(this ApplicationUpdater updater, UpdateCheckArgs args = null, bool register = true)
        {
            // Ensure the application is registered if necessary
            if (register)
            {
                await updater.InstallAsync().ConfigureAwait(false);
            }

            // Check for
            if (await updater.UpdateAsync(args).ConfigureAwait(false))
            {
                return(true);
            }
            return(await updater.UpdateAsync(args).ConfigureAwait(false));
        }
Exemple #2
0
 public static UpdateInfo CheckForUpdate(this ApplicationUpdater updater, UpdateCheckArgs args = null)
 {
     return(updater.CheckForUpdateAsync(args).GetAwaiter().GetResult());
 }
Exemple #3
0
 public static bool EnsureUpdated(this ApplicationUpdater updater, UpdateCheckArgs args = null, bool register = true)
 {
     return(EnsureUpdatedAsync(updater, args, register).GetAwaiter().GetResult());
 }