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


C# Ice.getOperation方法代码示例

本文整理汇总了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();
            }
        }
开发者ID:joshmoore,项目名称:ice,代码行数:25,代码来源:BatchOneways.cs

示例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());
     }      
 }
开发者ID:pedia,项目名称:zeroc-ice,代码行数:19,代码来源:LoggerAdminI.cs

示例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());
            }
        }
开发者ID:Crysty-Yui,项目名称:ice,代码行数:23,代码来源:LoggerAdminLoggerI.cs

示例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;
 }
开发者ID:zhangwei5095,项目名称:ice,代码行数:17,代码来源:AsyncResult.cs


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