本文整理汇总了C#中Ice.write__方法的典型用法代码示例。如果您正苦于以下问题:C# Ice.write__方法的具体用法?C# Ice.write__怎么用?C# Ice.write__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ice
的用法示例。
在下文中一共展示了Ice.write__方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: addClient
public void addClient(Ice.Identity ident, _System.Collections.Generic.Dictionary<string, string> context__)
{
IceInternal.Outgoing og__ = handler__.getOutgoing("addClient", Ice.OperationMode.Normal, context__);
try
{
try
{
IceInternal.BasicStream os__ = og__.ostr();
if(ident == null)
{
Ice.Identity tmp__ = new Ice.Identity();
tmp__.write__(os__);
}
else
{
ident.write__(os__);
}
}
catch(Ice.LocalException ex__)
{
og__.abort(ex__);
}
bool ok__ = og__.invoke();
if(!og__.istr().isEmpty())
{
try
{
if(!ok__)
{
try
{
og__.throwUserException();
}
catch(Ice.UserException ex)
{
throw new Ice.UnknownUserException(ex.ice_name(), ex);
}
}
og__.istr().skipEmptyEncaps();
}
catch(Ice.LocalException ex__)
{
throw new IceInternal.LocalExceptionWrapper(ex__, false);
}
}
}
finally
{
handler__.reclaimOutgoing(og__);
}
}
示例2: writeInstance
internal virtual void writeInstance(Ice.Object v, int index)
{
writeInt(index);
try
{
v.ice_preMarshal();
}
catch(System.Exception ex)
{
instance_.initializationData().logger.warning("exception raised by ice_preMarshal::\n" + ex);
}
v.write__(this);
}
示例3: Join
public Chat.RoomAccess Join(string nick, string topic, Ice.Identity listenerIdentity, _System.Collections.Generic.Dictionary<string, string> context__)
{
IceInternal.Outgoing og__ = handler__.getOutgoing("Join", Ice.OperationMode.Normal, context__);
try
{
try
{
IceInternal.BasicStream os__ = og__.ostr();
os__.writeString(nick);
os__.writeString(topic);
if(listenerIdentity == null)
{
Ice.Identity tmp__ = new Ice.Identity();
tmp__.write__(os__);
}
else
{
listenerIdentity.write__(os__);
}
}
catch(Ice.LocalException ex__)
{
og__.abort(ex__);
}
bool ok__ = og__.invoke();
try
{
if(!ok__)
{
try
{
og__.throwUserException();
}
catch(Chat.IChatException)
{
throw;
}
catch(Ice.UserException ex__)
{
throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
}
}
IceInternal.BasicStream is__ = og__.istr();
is__.startReadEncaps();
Chat.RoomAccess ret__;
ret__ = null;
if(ret__ == null)
{
ret__ = new Chat.RoomAccess();
}
ret__.read__(is__);
is__.endReadEncaps();
return ret__;
}
catch(Ice.LocalException ex__)
{
throw new IceInternal.LocalExceptionWrapper(ex__, false);
}
}
finally
{
handler__.reclaimOutgoing(og__);
}
}
示例4: writeUserException
public virtual void writeUserException(Ice.UserException v)
{
writeBool(v.usesClasses__());
v.write__(this);
if(v.usesClasses__())
{
writePendingObjects();
}
}
示例5: begin_Join
private Ice.AsyncResult<Chat.Callback_Lobby_Join> begin_Join(string nick, string topic, Ice.Identity listenerIdentity, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
{
checkAsyncTwowayOnly__(__Join_name);
IceInternal.TwowayOutgoingAsync<Chat.Callback_Lobby_Join> result__ = new IceInternal.TwowayOutgoingAsync<Chat.Callback_Lobby_Join>(this, __Join_name, Join_completed__, cookie__);
if(cb__ != null)
{
result__.whenCompletedWithAsyncCallback(cb__);
}
try
{
result__.prepare__(__Join_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
IceInternal.BasicStream os__ = result__.ostr__;
os__.writeString(nick);
os__.writeString(topic);
if(listenerIdentity == null)
{
Ice.Identity tmp__ = new Ice.Identity();
tmp__.write__(os__);
}
else
{
listenerIdentity.write__(os__);
}
os__.endWriteEncaps();
result__.send__(true);
}
catch(Ice.LocalException ex__)
{
result__.exceptionAsync__(ex__);
}
return result__;
}