summaryrefslogtreecommitdiff
path: root/csharp/test/xamarin/controller.iOS/AppDelegate.cs
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2018-11-21 17:47:35 +0100
committerBenoit Foucher <benoit@zeroc.com>2018-11-21 17:49:06 +0100
commita11945b449ae38efd6f79541c573c0028687c234 (patch)
treeb68a6c1b3a97b6e95009b5ec7810e891bb209a65 /csharp/test/xamarin/controller.iOS/AppDelegate.cs
parentFixed Android Bluetooth acceptor race condition, fixes #181 (diff)
downloadice-a11945b449ae38efd6f79541c573c0028687c234.tar.bz2
ice-a11945b449ae38efd6f79541c573c0028687c234.tar.xz
ice-a11945b449ae38efd6f79541c573c0028687c234.zip
Android and Xamarin test controller fixes and improvements
Diffstat (limited to 'csharp/test/xamarin/controller.iOS/AppDelegate.cs')
-rw-r--r--csharp/test/xamarin/controller.iOS/AppDelegate.cs9
1 files changed, 2 insertions, 7 deletions
diff --git a/csharp/test/xamarin/controller.iOS/AppDelegate.cs b/csharp/test/xamarin/controller.iOS/AppDelegate.cs
index 1f4728470ab..2b79fae00b1 100644
--- a/csharp/test/xamarin/controller.iOS/AppDelegate.cs
+++ b/csharp/test/xamarin/controller.iOS/AppDelegate.cs
@@ -48,17 +48,12 @@ namespace controller.iOS
public bool isEmulator()
{
- return true;
+ return ObjCRuntime.Runtime.Arch == ObjCRuntime.Arch.SIMULATOR;
}
public string processControllerRegistryHost()
{
- return "127.0.0.1";
- }
-
- public bool registerProcessController()
- {
- return true;
+ return isEmulator() ? "127.0.0.1" : ""; // With an empty host, the controller will use IceDiscovery.
}
}
}