aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2018-06-04 01:22:32 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2018-06-04 01:22:32 +0300
commitacf120606f7495bd132c0250fccb1b975e9660da (patch)
tree7ee25d9229317cf5042f20dd3966c7ea21be95c1 /Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs
parenta56f07ca4373ae1dd6127f7a047a2bf0689ac6ad (diff)
downloadTango-acf120606f7495bd132c0250fccb1b975e9660da.tar.gz
Tango-acf120606f7495bd132c0250fccb1b975e9660da.zip
Added PMR_VS solution.
Refactored discovery to be more generic.
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs')
-rw-r--r--Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs
index 37ade9688..21bdf3295 100644
--- a/Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs
+++ b/Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs
@@ -14,6 +14,7 @@ using Tango.PMR.IO;
using Tango.PMR;
using Google.Protobuf;
using Tango.Transport.Discovery;
+using Tango.PMR.Discovery;
namespace Tango.UnitTesting
{
@@ -29,11 +30,10 @@ namespace Tango.UnitTesting
Thread.Sleep(2000);
- UdpDiscoveryClient discoveryClient = new UdpDiscoveryClient("Tango Remote Runner", 2018);
- var service = discoveryClient.Discover().Result;
+ UdpDiscoveryClient<BasicDiscoveryMessage> discoveryClient = new UdpDiscoveryClient<BasicDiscoveryMessage>(2018);
+ var discoveryResponse = discoveryClient.Discover().Result;
-
- ITransportAdapter adapter = new TcpTransportAdapter(service.Address, 9595);
+ ITransportAdapter adapter = new TcpTransportAdapter(discoveryResponse.Address, discoveryResponse.Message.Port);
ITransporter transporter = new BasicTransporter(adapter);
transporter.Connect().Wait();