diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2018-06-04 01:22:32 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2018-06-04 01:22:32 +0300 |
| commit | acf120606f7495bd132c0250fccb1b975e9660da (patch) | |
| tree | 7ee25d9229317cf5042f20dd3966c7ea21be95c1 /Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI | |
| parent | a56f07ca4373ae1dd6127f7a047a2bf0689ac6ad (diff) | |
| download | Tango-acf120606f7495bd132c0250fccb1b975e9660da.tar.gz Tango-acf120606f7495bd132c0250fccb1b975e9660da.zip | |
Added PMR_VS solution.
Refactored discovery to be more generic.
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI')
| -rw-r--r-- | Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/MainWindowVM.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/MainWindowVM.cs b/Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/MainWindowVM.cs index 2ba6aa4bb..fd1b05e15 100644 --- a/Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/MainWindowVM.cs +++ b/Software/Visual_Studio/Utilities/Tango.RemoteRunner.UI/MainWindowVM.cs @@ -11,6 +11,7 @@ using System.Windows; using Tango.Logging; using Tango.PMR; using Tango.PMR.Common; +using Tango.PMR.Discovery; using Tango.PMR.IO; using Tango.SharedUI; using Tango.Transport; @@ -25,7 +26,7 @@ namespace Tango.RemoteRunner.UI { private TcpServer _server; private ITransporter _transporter; - private UdpDiscoveryService _discoveryService; + private UdpDiscoveryService<BasicDiscoveryMessage> _discoveryService; private const int PORT = 9595; private List<FileUpload> _uploads; private const long MAX_CHUNK_LENGTH = 1024; @@ -71,7 +72,12 @@ namespace Tango.RemoteRunner.UI _transporter.FailsWithAdapter = false; _transporter.RequestReceived += _transporter_RequestReceived; - _discoveryService = new UdpDiscoveryService("Tango Remote Runner", 2018); + _discoveryService = new UdpDiscoveryService<BasicDiscoveryMessage>(2018, new BasicDiscoveryMessage() + { + ServiceName = "Tango Remote Debugger", + Port = PORT, + }); + _discoveryService.Interval = TimeSpan.FromSeconds(1); _discoveryService.Start(); } |
