/// <summary> /// Updates the application. /// </summary> /// <param name="package">The package that contains the update</param> /// <param name="cancellationToken">The cancellation token.</param> /// <param name="progress">The progress.</param> /// <returns>Task.</returns> public override async Task UpdateApplication(PackageVersionInfo package, CancellationToken cancellationToken, IProgress <double> progress) { await InstallationManager.InstallPackage(package, progress, cancellationToken).ConfigureAwait(false); HasUpdateAvailable = false; OnApplicationUpdated(package); }
/// <summary> /// Updates the application. /// </summary> /// <param name="package">The package that contains the update</param> /// <param name="cancellationToken">The cancellation token.</param> /// <param name="progress">The progress.</param> /// <returns>Task.</returns> public async Task UpdateApplication(PackageVersionInfo package, CancellationToken cancellationToken, IProgress <double> progress) { await InstallationManager.InstallPackage(package, progress, cancellationToken).ConfigureAwait(false); EventHelper.QueueEventIfNotNull(ApplicationUpdated, this, new GenericEventArgs <Version> { Argument = package.version }, Logger); NotifyPendingRestart(); }