private static int run(string[] args, Ice.Communicator communicator) { communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010 -t 2000"); Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter"); Ice.Object @object = new Test.ChecksumI(); adapter.add(@object, communicator.stringToIdentity("test")); adapter.activate(); communicator.waitForShutdown(); return 0; }
private static int run(string[] args, Ice.Communicator communicator) { communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010 -t 2000"); Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter"); Ice.Object @object = new Test.ChecksumI(); adapter.add(@object, communicator.stringToIdentity("test")); adapter.activate(); communicator.waitForShutdown(); return(0); }
public override int run(string[] args) { communicator().getProperties().setProperty("TestAdapter.Endpoints", getTestEndpoint(0) + " -t 2000"); Ice.ObjectAdapter adapter = communicator().createObjectAdapter("TestAdapter"); Ice.Object @object = new Test.ChecksumI(); adapter.add(@object, Ice.Util.stringToIdentity("test")); adapter.activate(); communicator().waitForShutdown(); return(0); }