public override int run(string[] argc) { // Terminate cleanly on receipt of a signal // shutdownOnInterrupt(); Ice.ObjectPrx obj = communicator().stringToProxy("RepoApi:default -p 6667"); RepoApiPrx repoApi = RepoApiPrxHelper.checkedCast(obj); if (repoApi == null) { throw new ApplicationException("Invalid proxy"); } Console.WriteLine(repoApi.ice_id()); /*string[] typesList = repoClient.getAllTypes(); * Console.WriteLine("Count: " + typesList.Length); * foreach (string type in typesList) * { * RealTypeIcePrx realType = repoClient.getTypeById(type); * Console.WriteLine("Type N" + type + ", Name: " + realType.getName() + ", Description: " + realType.getDescription() + ", Ident: " + realType.ice_getIdentity().name); + }*/ string name = repoApi.name(ROOTID.value); Console.WriteLine(name); string[] children = repoApi.children(ROOTID.value); foreach (string child in children) { Console.WriteLine("Child: " + child + '\n'); } if (interrupted()) { Console.Error.WriteLine(appName() + ": terminating"); } return(0); }
public static void write__(IceInternal.BasicStream os__, RepoApiPrx v__) { os__.writeProxy(v__); }