diff options
author | Jose <jose@zeroc.com> | 2018-06-01 17:41:03 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-06-01 17:41:03 +0200 |
commit | cbe92e540a7f02f0bdf93192424bd119189365b7 (patch) | |
tree | 411c50dc0ae9c669d31a940b1b4903b5deac4f12 /csharp/test/Ice/binding/RemoteCommunicatorI.cs | |
parent | Fixed Util.py check for binary installation directory on Windows (diff) | |
download | ice-cbe92e540a7f02f0bdf93192424bd119189365b7.tar.bz2 ice-cbe92e540a7f02f0bdf93192424bd119189365b7.tar.xz ice-cbe92e540a7f02f0bdf93192424bd119189365b7.zip |
Do not use Ice::Application for Ice testsuite
Diffstat (limited to 'csharp/test/Ice/binding/RemoteCommunicatorI.cs')
-rw-r--r-- | csharp/test/Ice/binding/RemoteCommunicatorI.cs | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/csharp/test/Ice/binding/RemoteCommunicatorI.cs b/csharp/test/Ice/binding/RemoteCommunicatorI.cs index f0e3eb2a2c6..8428a1ca1d2 100644 --- a/csharp/test/Ice/binding/RemoteCommunicatorI.cs +++ b/csharp/test/Ice/binding/RemoteCommunicatorI.cs @@ -11,12 +11,6 @@ using Test; public class RemoteCommunicatorI : RemoteCommunicatorDisp_ { - - public RemoteCommunicatorI(TestCommon.Application app) - { - _app = app; - } - public override RemoteObjectAdapterPrx createObjectAdapter(string name, string endpts, Ice.Current current) { @@ -25,15 +19,15 @@ public class RemoteCommunicatorI : RemoteCommunicatorDisp_ { try { + Ice.Communicator communicator = current.adapter.getCommunicator(); string endpoints = endpts; if(endpoints.IndexOf("-p") < 0) { - endpoints = _app.getTestEndpoint(_nextPort++, endpoints); + endpoints = TestHelper.getTestEndpoint(communicator.getProperties(), _nextPort++, endpoints); } - Ice.Communicator com = current.adapter.getCommunicator(); - com.getProperties().setProperty(name + ".ThreadPool.Size", "1"); - Ice.ObjectAdapter adapter = com.createObjectAdapterWithEndpoints(name, endpoints); + communicator.getProperties().setProperty(name + ".ThreadPool.Size", "1"); + Ice.ObjectAdapter adapter = communicator.createObjectAdapterWithEndpoints(name, endpoints); return RemoteObjectAdapterPrxHelper.uncheckedCast( current.adapter.addWithUUID(new RemoteObjectAdapterI(adapter))); } @@ -59,6 +53,5 @@ public class RemoteCommunicatorI : RemoteCommunicatorDisp_ current.adapter.getCommunicator().shutdown(); } - private TestCommon.Application _app; private int _nextPort = 10; }; |