aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2018-12-23 11:25:16 +0200
committerAvi Levkovich <avi@twine-s.com>2018-12-23 11:25:16 +0200
commit32b6e8d780c1fcadc78301a26a0f19d40a0dc270 (patch)
treebc4437c517ae41163938275b46bc4bf6ea45f092 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs
parent7ac67be021eff174dfcc740d56a2cb1ed7aa43bf (diff)
parent5cb09f7732429d15477321e7f748d010ef27c85d (diff)
downloadTango-32b6e8d780c1fcadc78301a26a0f19d40a0dc270.tar.gz
Tango-32b6e8d780c1fcadc78301a26a0f19d40a0dc270.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs
index 4032c946c..545d51ef2 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs
@@ -69,6 +69,9 @@ namespace Tango.MachineStudio.UI.ViewModels
_notificationProvider = notificationProvider;
}
+ /// <summary>
+ /// Called when the application has been started
+ /// </summary>
public override void OnApplicationStarted()
{
base.OnApplicationStarted();
@@ -91,15 +94,15 @@ namespace Tango.MachineStudio.UI.ViewModels
Status = "Checking for critical updates...";
LogManager.Log("Checking for forced update...");
- var service = UpdateServiceHelper.GetUpdateServiceChannel();
- var client = service.CreateChannel();
+
+ var client = new MachineStudioUpdateService();
CheckForUpdatesResponse response = client.CheckForUpdates(new CheckForUpdatesRequest()
{
Email = "ForceUpdate",
Password = "ForceUpdate",
Version = ApplicationManager.Version.ToString(),
- });
+ }).Result;
if (response.IsUpdateAvailable && response.ForcedUpdate)
{