aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-12-19 12:57:04 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-12-19 12:57:04 +0200
commitde762e7e5b346af5a12eff04cbaa0696eec15b8c (patch)
tree76368bb6e9f62af738ab8420c4db19079b702fa3 /Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
parent0f5a0b13fc4408952d90d2450c642a7948b88879 (diff)
downloadTango-de762e7e5b346af5a12eff04cbaa0696eec15b8c.tar.gz
Tango-de762e7e5b346af5a12eff04cbaa0696eec15b8c.zip
Moved all web transport to json :/
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
index ce45258f5..6df7117d7 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs
@@ -111,9 +111,9 @@ namespace Tango.PPC.Common.MachineUpdate
DownloadUpdateResponse update_response = null;
- using (var http = new ProtoWebClient())
+ using (var http = new WebTransportClient())
{
- update_response = await http.Post<DownloadUpdateRequest, DownloadUpdateResponse>(machineServiceAddress + "/api/PPC/MachineUpdate", request);
+ update_response = await http.PostJson<DownloadUpdateRequest, DownloadUpdateResponse>(machineServiceAddress + "/api/PPC/MachineUpdate", request);
}
LogManager.Log($"Machine update response received: {Environment.NewLine}{update_response.ToJsonString()}");
@@ -292,9 +292,9 @@ namespace Tango.PPC.Common.MachineUpdate
CheckForUpdateResponse update_response = null;
- using (var http = new ProtoWebClient())
+ using (var http = new WebTransportClient())
{
- update_response = http.Post<CheckForUpdateRequest, CheckForUpdateResponse>(machineServiceAddress + "/api/PPC/CheckForUpdate", request).Result;
+ update_response = http.PostJson<CheckForUpdateRequest, CheckForUpdateResponse>(machineServiceAddress + "/api/PPC/CheckForUpdate", request).Result;
}
LogManager.Log($"Check for update response received: {Environment.NewLine}{update_response.ToJsonString()}");
@@ -403,9 +403,9 @@ namespace Tango.PPC.Common.MachineUpdate
UpdateDBResponse update_response = null;
- using (var http = new ProtoWebClient())
+ using (var http = new WebTransportClient())
{
- update_response = http.Post<UpdateDBRequest, UpdateDBResponse>(machineServiceAddress + "/api/PPC/UpdateDB", request).Result;
+ update_response = http.PostJson<UpdateDBRequest, UpdateDBResponse>(machineServiceAddress + "/api/PPC/UpdateDB", request).Result;
}
LogManager.Log($"Update DB response received: {Environment.NewLine}{update_response.ToJsonString()}");