コード例 #1
0
ファイル: client.cs プロジェクト: asdlei99/old-qreal-branches
    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);
    }
コード例 #2
0
ファイル: repoclientice.cs プロジェクト: nfrey/qreal
 public static void write__(IceInternal.BasicStream os__, RepoApiPrx v__)
 {
     os__.writeProxy(v__);
 }