当前位置: 首页>>代码示例>>C#>>正文


C# Ice.ice_id方法代码示例

本文整理汇总了C#中Ice.ice_id方法的典型用法代码示例。如果您正苦于以下问题:C# Ice.ice_id方法的具体用法?C# Ice.ice_id怎么用?C# Ice.ice_id使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Ice的用法示例。


在下文中一共展示了Ice.ice_id方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: response_SBaseAsObject

 public void response_SBaseAsObject(Ice.Object o)
 {
     AllTests.test(o != null);
     AllTests.test(o.ice_id().Equals("::Test::SBase"));
     SBase sb = (SBase) o;
     AllTests.test(sb != null);
     AllTests.test(sb.sb.Equals("SBase.sb"));
     callback.called();
 }
开发者ID:Radulfr,项目名称:zeroc-ice,代码行数:9,代码来源:AllTests.cs

示例2: ice_id___

 public static DispatchStatus ice_id___(Ice.Object __obj, IceInternal.Incoming inS__, Current __current)
 {
     inS__.readEmptyParams();
     string __ret = __obj.ice_id(__current);
     IceInternal.BasicStream os__ = inS__.startWriteParams__(FormatType.DefaultFormat);
     os__.writeString(__ret);
     inS__.endWriteParams__(true);
     return DispatchStatus.DispatchOK;
 }
开发者ID:Radulfr,项目名称:zeroc-ice,代码行数:9,代码来源:Object.cs

示例3: patch

 public override void patch(Ice.Object v)
 {
     try
     {
         switch(_member)
         {
         case 0:
             _instance.node = (minie.irpc.cm_node_rpc)v;
             break;
         case 1:
             _instance.user = (minie.irpc.cm_user_rpc)v;
             break;
         case 2:
             _instance.creator = (minie.irpc.sys_user_rpc)v;
             break;
         }
     }
     catch(_System.InvalidCastException)
     {
         IceInternal.Ex.throwUOE(type(), v.ice_id());
     }
 }
开发者ID:srdgame,项目名称:wpf_test,代码行数:22,代码来源:minie_entity.cs

示例4: register

        public Ice.ObjectPrx register(string Name, Ice.Object servant, bool icegrid = true)
        {
            // register an object to local Ice adapter and yellowpage service (IceGrid)

            Ice.Identity iceid = Communicator.stringToIdentity(Name);
            logger.Info("Registering: " + Name);//+ " with ice_id: " + iceid.ToString());
            Ice.ObjectPrx proxy;
            try
            {
                proxy = _Adapter.add(servant, iceid);
            }
            catch (Ice.AlreadyRegisteredException ex)
            {
                logger.Error("The name of this holon: " + iceid.ToString() + " is allready used in local adapter");
                //maybe I could try to change name but there is probably something wrong
                throw (ex);
            }

            // It is very important to deregister objects before closing!!
            // Otherwise ghost links are created
            IceGrid.AdminPrx admin = getIceGridAdmin();
            try
            {
                admin.addObjectWithType(proxy, servant.ice_id());
            }
            catch (IceGrid.ObjectExistsException)
            {
                admin.updateObject(proxy);
            }
            _ServantIds.Add(iceid);
            return proxy;
        }
开发者ID:SintefRaufossManufacturing,项目名称:icehms,代码行数:32,代码来源:icehms.cs

示例5: ice_id___

 public static DispatchStatus ice_id___(Ice.Object __obj, IceInternal.Incoming inS__,
     Current __current)
 {
     inS__.istr().skipEmptyEncaps();
     string __ret = __obj.ice_id(__current);
     IceInternal.BasicStream os__ = inS__.ostr();
     os__.writeString(__ret);
     return DispatchStatus.DispatchOK;
 }
开发者ID:bholl,项目名称:zeroc-ice,代码行数:9,代码来源:Object.cs


注:本文中的Ice.ice_id方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。