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


C# Ice.getProxy方法代码示例

本文整理汇总了C#中Ice.getProxy方法的典型用法代码示例。如果您正苦于以下问题:C# Ice.getProxy方法的具体用法?C# Ice.getProxy怎么用?C# Ice.getProxy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Ice的用法示例。


在下文中一共展示了Ice.getProxy方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: opString

        public void opString(Ice.AsyncResult result)
        {
            string cmp = testString;
            if(_useCookie)
            {
                Cookie cookie = (Cookie)result.AsyncState;
                cmp = cookie.getString();
            }

            byte[] outEncaps;
            if(result.getProxy().end_ice_invoke(out outEncaps, result))
            {
                Ice.InputStream inS = new Ice.InputStream(_communicator, outEncaps);
                inS.startEncapsulation();
                string s = inS.readString();
                test(s.Equals(cmp));
                s = inS.readString();
                test(s.Equals(cmp));
                inS.endEncapsulation();
                callback.called();
            }
            else
            {
                test(false);
            }
        }
开发者ID:Crysty-Yui,项目名称:ice,代码行数:26,代码来源:AllTests.cs

示例3: opLByteSI

 public void opLByteSI(Ice.AsyncResult result)
 {
     List<byte> i = (List<byte>)result.AsyncState;
     List<byte> o;
     List<byte> r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opLByteS(out o, result);
     test(Ice.CollectionComparer.Equals(i, o));
     test(Ice.CollectionComparer.Equals(i, r));
     callback.called();
 }
开发者ID:sbesson,项目名称:zeroc-ice,代码行数:9,代码来源:TwowaysNewAMI.cs

示例4: opAByteSI

 public void opAByteSI(Ice.AsyncResult result)
 {
     byte[] i = (byte[])result.AsyncState;
     byte[] o;
     byte[] r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opAByteS(out o, result);
     test(Ice.CollectionComparer.Equals(i, o));
     test(Ice.CollectionComparer.Equals(i, r));
     callback.called();
 }
开发者ID:sbesson,项目名称:zeroc-ice,代码行数:9,代码来源:TwowaysNewAMI.cs

示例5: opNRI

 public void opNRI(Ice.AsyncResult result)
 {
     Dictionary<string, string> i = (Dictionary<string, string>)result.AsyncState;
     Dictionary<string, string> o;
     Dictionary<string, string> r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opNR(out o, result);
     test(Ice.CollectionComparer.Equals(i, o));
     test(Ice.CollectionComparer.Equals(i, r));
     callback.called();
 }
开发者ID:joshmoore,项目名称:ice,代码行数:9,代码来源:TwowaysAMI.cs

示例6: opNDVI

 public void opNDVI(Ice.AsyncResult result)
 {
     Dictionary<string, Dictionary<int, int>> i = (Dictionary<string, Dictionary<int, int>>)result.AsyncState;
     Dictionary<string, Dictionary<int, int>> o;
     Dictionary<string, Dictionary<int, int>> r = 
         MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opNDV(out o, result);
     foreach(string key in i.Keys)
     {
         test(Ice.CollectionComparer.Equals(i[key], o[key]));
         test(Ice.CollectionComparer.Equals(i[key], r[key]));
     }
     callback.called();
 }
开发者ID:joshmoore,项目名称:ice,代码行数:13,代码来源:TwowaysAMI.cs

示例7: opQCVPrxSI

 public void opQCVPrxSI(Ice.AsyncResult result)
 {
     Queue<CVPrx> i = (Queue<CVPrx>)result.AsyncState;
     Queue<CVPrx> o;
     Queue<CVPrx> r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opQCVPrxS(out o, result);
     test(Ice.CollectionComparer.Equals(i, o));
     test(Ice.CollectionComparer.Equals(i, r));
     callback.called();
 }
开发者ID:sbesson,项目名称:zeroc-ice,代码行数:9,代码来源:TwowaysNewAMI.cs

示例8: connection

 connection(Ice.AsyncResult result)
 {
     test(result.AsyncState == _cookie);
     test(result.getProxy().end_ice_getConnection(result) != null);
     called();
 }
开发者ID:pedia,项目名称:zeroc-ice,代码行数:6,代码来源:AllTests.cs

示例9: opLCVSI

 public void opLCVSI(Ice.AsyncResult result)
 {
     List<CV> i = (List<CV>)result.AsyncState;
     List<CV> o;
     List<CV> r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opLCVS(out o, result);
     IEnumerator<CV> eo = o.GetEnumerator();
     IEnumerator<CV> er = r.GetEnumerator();
     foreach(CV obj in i)
     {
         eo.MoveNext();
         er.MoveNext();
         test(obj.i == ((CV)eo.Current).i);
         test(obj.i == ((CV)er.Current).i);
     }
     callback.called();
 }
开发者ID:sbesson,项目名称:zeroc-ice,代码行数:16,代码来源:TwowaysNewAMI.cs

示例10: opWithResult

 opWithResult(Ice.AsyncResult result)
 {
     test(result.AsyncState == _cookie);
     test(TestIntfPrxHelper.uncheckedCast(result.getProxy()).end_opWithResult(result) == 15);
     called();
 }
开发者ID:pedia,项目名称:zeroc-ice,代码行数:6,代码来源:AllTests.cs

示例11: opCObjectSI

 public void opCObjectSI(Ice.AsyncResult result)
 {
     CObjectS i = (CObjectS)result.AsyncState;
     CObjectS o;
     CObjectS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCObjectS(out o, result);
     IEnumerator<Ice.Object> eo = o.GetEnumerator();
     IEnumerator<Ice.Object> er = r.GetEnumerator();
     foreach(CV obj in i)
     {
         eo.MoveNext();
         er.MoveNext();
         test(obj.i == ((CV)eo.Current).i);
         test(obj.i == ((CV)er.Current).i);
     }
     callback.called();
 }
开发者ID:sbesson,项目名称:zeroc-ice,代码行数:16,代码来源:TwowaysNewAMI.cs

示例12: opCustomCVSSI

 public void opCustomCVSSI(Ice.AsyncResult result)
 {
     Custom<Custom<CV>> i = (Custom<Custom<CV>>)result.AsyncState;
     Custom<Custom<CV>> o;
     Custom<Custom<CV>> r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCustomCVSS(out o, result);
     IEnumerator<Custom<CV>> eo = (IEnumerator<Custom<CV>>)o.GetEnumerator();
     IEnumerator<Custom<CV>> er = (IEnumerator<Custom<CV>>)r.GetEnumerator();
     foreach(Custom<CV> s in i)
     {
         eo.MoveNext();
         er.MoveNext();
         IEnumerator<CV> io = (IEnumerator<CV>)eo.Current.GetEnumerator();
         IEnumerator<CV> ir = (IEnumerator<CV>)er.Current.GetEnumerator();
         foreach(CV obj in s)
         {
             io.MoveNext();
             ir.MoveNext();
             if(obj == null)
             {
                 test(io.Current == null);
                 test(ir.Current == null);
             }
             else
             {
                 test(obj.i == io.Current.i);
                 test(obj.i == ir.Current.i);
             }
         }
     }
     callback.called();
 }
开发者ID:sbesson,项目名称:zeroc-ice,代码行数:31,代码来源:TwowaysNewAMI.cs

示例13: opONDVI

 public void opONDVI(Ice.AsyncResult result)
 {
     ONDV i = (ONDV)result.AsyncState;
     ONDV o;
     ONDV r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opONDV(out o, result);
     foreach(string key in i.Keys)
     {
         foreach(string s in i[key].Keys)
         {
             test(Ice.CollectionComparer.Equals(i[key][s], o[key][s]));
             test(Ice.CollectionComparer.Equals(i[key][s], r[key][s]));
         }
     }
     callback.called();
 }
开发者ID:bholl,项目名称:zeroc-ice,代码行数:15,代码来源:TwowaysNewAMI.cs

示例14: opCCRSI

 public void opCCRSI(Ice.AsyncResult result)
 {
     CCRS i = (CCRS)result.AsyncState;
     CCRS o;
     CCRS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCCRS(out o, result);
     IEnumerator<CR> eo = (IEnumerator<CR>)o.GetEnumerator();
     IEnumerator<CR> er = (IEnumerator<CR>)r.GetEnumerator();
     foreach(CR obj in i)
     {
         eo.MoveNext();
         er.MoveNext();
         test(obj.v.i == ((CR)eo.Current).v.i);
         test(obj.v.i == ((CR)er.Current).v.i);
     }
     callback.called();
 }
开发者ID:sbesson,项目名称:zeroc-ice,代码行数:16,代码来源:TwowaysNewAMI.cs

示例15: opCEnSI

 public void opCEnSI(Ice.AsyncResult result)
 {
     CEnS i = (CEnS)result.AsyncState;
     CEnS o;
     CEnS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCEnS(out o, result);
     test(Ice.CollectionComparer.Equals(i, o));
     test(Ice.CollectionComparer.Equals(i, r));
     callback.called();
 }
开发者ID:sbesson,项目名称:zeroc-ice,代码行数:9,代码来源:TwowaysNewAMI.cs


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