aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-06-03 19:22:25 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-06-03 19:22:25 +0300
commiteb9ad775373160c754c590e0de1533e2b9644e38 (patch)
tree05c5562d5b8470543c47423524d1c18562d3f46e /Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs
parent69343c64b63e2ae675332df10a8ad786cbda7094 (diff)
downloadTango-eb9ad775373160c754c590e0de1533e2b9644e38.tar.gz
Tango-eb9ad775373160c754c590e0de1533e2b9644e38.zip
Implemented Discovery Components!
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs')
-rw-r--r--Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs
index 6e59dde8a..37ade9688 100644
--- a/Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs
+++ b/Software/Visual_Studio/Tango.UnitTesting/RemoteRunner_TST.cs
@@ -13,6 +13,7 @@ using Tango.Transport.Adapters;
using Tango.PMR.IO;
using Tango.PMR;
using Google.Protobuf;
+using Tango.Transport.Discovery;
namespace Tango.UnitTesting
{
@@ -28,7 +29,11 @@ namespace Tango.UnitTesting
Thread.Sleep(2000);
- ITransportAdapter adapter = new TcpTransportAdapter("localhost", 9595);
+ UdpDiscoveryClient discoveryClient = new UdpDiscoveryClient("Tango Remote Runner", 2018);
+ var service = discoveryClient.Discover().Result;
+
+
+ ITransportAdapter adapter = new TcpTransportAdapter(service.Address, 9595);
ITransporter transporter = new BasicTransporter(adapter);
transporter.Connect().Wait();