本文整理汇总了C#中Ice.getOperation方法的典型用法代码示例。如果您正苦于以下问题:C# Ice.getOperation方法的具体用法?C# Ice.getOperation怎么用?C# Ice.getOperation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ice
的用法示例。
在下文中一共展示了Ice.getOperation方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: enqueue
public void enqueue(Ice.BatchRequest request, int count, int size)
{
test(request.getOperation().Equals("opByteSOneway") || request.getOperation().Equals("ice_ping"));
test(request.getProxy().ice_isBatchOneway());
if(count > 0)
{
test(_lastRequestSize + _size == size);
}
_count = count;
_size = size;
if(_size + request.getSize() > 25000)
{
request.getProxy().begin_ice_flushBatchRequests();
_size = 18; // header
}
if(_enabled)
{
_lastRequestSize = request.getSize();
++_count;
request.enqueue();
}
}
示例2: initCompleted
private void initCompleted(Ice.AsyncResult r)
{
Ice.RemoteLoggerPrx remoteLogger = Ice.RemoteLoggerPrxHelper.uncheckedCast(r.getProxy());
try
{
remoteLogger.end_init(r);
if(_traceLevel > 1)
{
_logger.trace(_traceCategory, r.getOperation() + " on `" + remoteLogger.ToString()
+ "' completed successfully");
}
}
catch(Ice.LocalException ex)
{
deadRemoteLogger(remoteLogger, _logger, ex, r.getOperation());
}
}
示例3: logCompleted
private void logCompleted(Ice.AsyncResult r)
{
Ice.RemoteLoggerPrx remoteLogger = Ice.RemoteLoggerPrxHelper.uncheckedCast(r.getProxy());
try
{
remoteLogger.end_log(r);
if(_loggerAdmin.getTraceLevel() > 1)
{
_localLogger.trace(_traceCategory, r.getOperation() + " on `" + remoteLogger.ToString()
+ "' completed successfully");
}
}
catch(Ice.CommunicatorDestroyedException)
{
// expected if there are outstanding calls during communicator destruction
}
catch(Ice.LocalException ex)
{
_loggerAdmin.deadRemoteLogger(remoteLogger, _localLogger, ex, r.getOperation());
}
}
示例4: check
public static AsyncResultI check(Ice.AsyncResult r, string operation)
{
if(r == null)
{
throw new System.ArgumentException("AsyncResult == null");
}
if(r.getOperation() != operation)
{
throw new System.ArgumentException("Incorrect operation for end_" + operation + " method: " +
r.getOperation());
}
if(!(r is AsyncResultI))
{
throw new System.ArgumentException("Incorrect AsyncResult object for end_" + operation + " method");
}
return (AsyncResultI)r;
}