本文整理汇总了C#中Ice.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Ice.ToString方法的具体用法?C# Ice.ToString怎么用?C# Ice.ToString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ice
的用法示例。
在下文中一共展示了Ice.ToString方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: exceptAbortI
private static void exceptAbortI(Ice.Exception ex) {
try
{
throw ex;
}
catch(Ice.ConnectionLostException )
{
}
catch(Ice.ConnectFailedException)
{
}
catch(Ice.SocketException)
{
}
catch(Exception)
{
WriteLine(ex.ToString());
test(false);
}
}
示例2: changeCommunicator
//
// Change this proxy's communicator, while keeping its invocation timeout
//
private static Ice.RemoteLoggerPrx changeCommunicator(Ice.RemoteLoggerPrx prx, Ice.Communicator communicator)
{
if(prx == null)
{
return null;
}
Ice.ObjectPrx result = communicator.stringToProxy(prx.ToString());
return Ice.RemoteLoggerPrxHelper.uncheckedCast(result.ice_invocationTimeout(prx.ice_getInvocationTimeout()));
}
示例3: detachRemoteLogger
detachRemoteLogger(Ice.RemoteLoggerPrx remoteLogger, Ice.Current current)
{
if(remoteLogger == null)
{
return false;
}
//
// No need to convert the proxy as we only use its identity
//
bool found = removeRemoteLogger(remoteLogger);
if(_traceLevel > 0)
{
if(found)
{
_logger.trace(_traceCategory, "detached `" + remoteLogger.ToString() + "'");
}
else
{
_logger.trace(_traceCategory, "cannot detach `" + remoteLogger.ToString() + "': not found");
}
}
return found;
}
示例4: deadRemoteLogger
internal void deadRemoteLogger(Ice.RemoteLoggerPrx remoteLogger, Ice.Logger logger, Ice.LocalException ex,
string operation)
{
//
// No need to convert remoteLogger as we only use its identity
//
if(removeRemoteLogger(remoteLogger))
{
if(_traceLevel > 0)
{
logger.trace(_traceCategory, "detached `" + remoteLogger.ToString() + "' because "
+ operation + " raised:\n" + ex.ToString());
}
}
}