Missed in previous commits.
This commit is contained in:
@@ -7,6 +7,7 @@ using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace BodyshopPartner.Utils
|
||||
{
|
||||
@@ -31,7 +32,7 @@ namespace BodyshopPartner.Utils
|
||||
}
|
||||
|
||||
updateInfo.ReleasesToApply.ForEach(release => logger.Debug("Release to apply " + release.Version));
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -61,12 +62,16 @@ namespace BodyshopPartner.Utils
|
||||
var updateInfo = await updateManager.CheckForUpdate();
|
||||
var releases = updateInfo.ReleasesToApply;
|
||||
logger.Debug("Applying releases", releases.ToString());
|
||||
await updateManager.DownloadReleases(releases, _ => {
|
||||
await updateManager.DownloadReleases(releases, _ =>
|
||||
{
|
||||
logger.Debug("Download Release Progress " + _.ToString());
|
||||
DownloadProgress = _; });
|
||||
await updateManager.ApplyReleases(updateInfo, _ => {
|
||||
DownloadProgress = _;
|
||||
});
|
||||
await updateManager.ApplyReleases(updateInfo, _ =>
|
||||
{
|
||||
logger.Debug("Install Progress " + _.ToString());
|
||||
InstallProgress = _; });
|
||||
InstallProgress = _;
|
||||
});
|
||||
}
|
||||
catch (Exception Ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user