// // Copyright (c) ZeroC, Inc. All rights reserved. // using Test; namespace Ice { namespace binding { public class Server : TestHelper { public override void run(string[] args) { Ice.Properties properties = createTestProperties(ref args); properties.setProperty("Ice.ServerIdleTime", "30"); using(var communicator = initialize(properties)) { communicator.getProperties().setProperty("TestAdapter.Endpoints", getTestEndpoint(0)); Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter"); Ice.Identity id = Ice.Util.stringToIdentity("communicator"); adapter.add(new RemoteCommunicatorI(), id); adapter.activate(); serverReady(); communicator.waitForShutdown(); } } public static int Main(string[] args) { return TestDriver.runTest(args); } } } }