本文整理汇总了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();
}
示例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;
}
示例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());
}
}
示例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;
}
示例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;
}