diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-19 12:57:04 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-19 12:57:04 +0200 |
| commit | de762e7e5b346af5a12eff04cbaa0696eec15b8c (patch) | |
| tree | 76368bb6e9f62af738ab8420c4db19079b702fa3 /Software/Visual_Studio/PPC/Tango.PPC.Common/Update/PPCUpdateService.cs | |
| parent | 0f5a0b13fc4408952d90d2450c642a7948b88879 (diff) | |
| download | Tango-de762e7e5b346af5a12eff04cbaa0696eec15b8c.tar.gz Tango-de762e7e5b346af5a12eff04cbaa0696eec15b8c.zip | |
Moved all web transport to json :/
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Update/PPCUpdateService.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/Update/PPCUpdateService.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Update/PPCUpdateService.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Update/PPCUpdateService.cs index 282e4d627..b6654ef59 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Update/PPCUpdateService.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Update/PPCUpdateService.cs @@ -3,18 +3,20 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Tango.Settings; using Tango.Transport.Web; namespace Tango.PPC.Common.Update { public class PPCUpdateService : IPPCUpdateService { - private string address = "http://localhost:51581/api/VersionUpdate/"; - private JsonWebClient _client; + private string address; + private WebTransportClient _client; public PPCUpdateService() { - _client = new JsonWebClient(); + address = SettingsManager.Default.GetOrCreate<PPCSettings>().MachineServiceAddress + "/api/PPC/"; + _client = new WebTransportClient(); } public Task<UploadVersionResponse> UploadVersion(UploadVersionRequest request) |
