diff options
Diffstat (limited to 'csharp/test/Ice/seqMapping/TwowaysAMI.cs')
-rw-r--r-- | csharp/test/Ice/seqMapping/TwowaysAMI.cs | 366 |
1 files changed, 0 insertions, 366 deletions
diff --git a/csharp/test/Ice/seqMapping/TwowaysAMI.cs b/csharp/test/Ice/seqMapping/TwowaysAMI.cs index b722ad5d270..c50306991f6 100644 --- a/csharp/test/Ice/seqMapping/TwowaysAMI.cs +++ b/csharp/test/Ice/seqMapping/TwowaysAMI.cs @@ -108,16 +108,6 @@ public class TwowaysAMI callback.called(); } - public void opCByteSI(Ice.AsyncResult result) - { - CByteS i = (CByteS)result.AsyncState; - CByteS o; - CByteS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCByteS(out o, result); - test(Ice.CollectionComparer.Equals(i, o)); - test(Ice.CollectionComparer.Equals(i, r)); - callback.called(); - } - public void opABoolSI(Ice.AsyncResult result) { bool[] i = (bool[])result.AsyncState; @@ -168,16 +158,6 @@ public class TwowaysAMI callback.called(); } - public void opCBoolSI(Ice.AsyncResult result) - { - CBoolS i = (CBoolS)result.AsyncState; - CBoolS o; - CBoolS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCBoolS(out o, result); - test(Ice.CollectionComparer.Equals(i, o)); - test(Ice.CollectionComparer.Equals(i, r)); - callback.called(); - } - public void opAShortSI(Ice.AsyncResult result) { short[] i = (short[])result.AsyncState; @@ -228,16 +208,6 @@ public class TwowaysAMI callback.called(); } - public void opCShortSI(Ice.AsyncResult result) - { - CShortS i = (CShortS)result.AsyncState; - CShortS o; - CShortS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCShortS(out o, result); - test(Ice.CollectionComparer.Equals(i, o)); - test(Ice.CollectionComparer.Equals(i, r)); - callback.called(); - } - public void opAIntSI(Ice.AsyncResult result) { int[] i = (int[])result.AsyncState; @@ -288,16 +258,6 @@ public class TwowaysAMI callback.called(); } - public void opCIntSI(Ice.AsyncResult result) - { - CIntS i = (CIntS)result.AsyncState; - CIntS o; - CIntS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCIntS(out o, result); - test(Ice.CollectionComparer.Equals(i, o)); - test(Ice.CollectionComparer.Equals(i, r)); - callback.called(); - } - public void opALongSI(Ice.AsyncResult result) { long[] i = (long[])result.AsyncState; @@ -348,16 +308,6 @@ public class TwowaysAMI callback.called(); } - public void opCLongSI(Ice.AsyncResult result) - { - CLongS i = (CLongS)result.AsyncState; - CLongS o; - CLongS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCLongS(out o, result); - test(Ice.CollectionComparer.Equals(i, o)); - test(Ice.CollectionComparer.Equals(i, r)); - callback.called(); - } - public void opAFloatSI(Ice.AsyncResult result) { float[] i = (float[])result.AsyncState; @@ -408,16 +358,6 @@ public class TwowaysAMI callback.called(); } - public void opCFloatSI(Ice.AsyncResult result) - { - CFloatS i = (CFloatS)result.AsyncState; - CFloatS o; - CFloatS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCFloatS(out o, result); - test(Ice.CollectionComparer.Equals(i, o)); - test(Ice.CollectionComparer.Equals(i, r)); - callback.called(); - } - public void opADoubleSI(Ice.AsyncResult result) { double[] i = (double[])result.AsyncState; @@ -468,16 +408,6 @@ public class TwowaysAMI callback.called(); } - public void opCDoubleSI(Ice.AsyncResult result) - { - CDoubleS i = (CDoubleS)result.AsyncState; - CDoubleS o; - CDoubleS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCDoubleS(out o, result); - test(Ice.CollectionComparer.Equals(i, o)); - test(Ice.CollectionComparer.Equals(i, r)); - callback.called(); - } - public void opAStringSI(Ice.AsyncResult result) { string[] i = (string[])result.AsyncState; @@ -528,16 +458,6 @@ public class TwowaysAMI callback.called(); } - public void opCStringSI(Ice.AsyncResult result) - { - CStringS i = (CStringS)result.AsyncState; - CStringS o; - CStringS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCStringS(out o, result); - test(Ice.CollectionComparer.Equals(i, o)); - test(Ice.CollectionComparer.Equals(i, r)); - callback.called(); - } - public void opAObjectSI(Ice.AsyncResult result) { Ice.Object[] i = (Ice.Object[])result.AsyncState; @@ -572,23 +492,6 @@ public class TwowaysAMI callback.called(); } - 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(); - } - public void opAObjectPrxSI(Ice.AsyncResult result) { Ice.ObjectPrx[] i = (Ice.ObjectPrx[])result.AsyncState; @@ -640,16 +543,6 @@ public class TwowaysAMI callback.called(); } - public void opCObjectPrxSI(Ice.AsyncResult result) - { - CObjectPrxS i = (CObjectPrxS)result.AsyncState; - CObjectPrxS o; - CObjectPrxS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCObjectPrxS(out o, result); - test(Ice.CollectionComparer.Equals(i, o)); - test(Ice.CollectionComparer.Equals(i, r)); - callback.called(); - } - public void opAStructSI(Ice.AsyncResult result) { S[] i = (S[])result.AsyncState; @@ -700,16 +593,6 @@ public class TwowaysAMI callback.called(); } - public void opCStructSI(Ice.AsyncResult result) - { - CStructS i = (CStructS)result.AsyncState; - CStructS o; - CStructS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCStructS(out o, result); - test(Ice.CollectionComparer.Equals(i, o)); - test(Ice.CollectionComparer.Equals(i, r)); - callback.called(); - } - public void opAStructSDI(Ice.AsyncResult result) { SD[] i = (SD[])result.AsyncState; @@ -760,16 +643,6 @@ public class TwowaysAMI callback.called(); } - public void opCStructSDI(Ice.AsyncResult result) - { - CStructSD i = (CStructSD)result.AsyncState; - CStructSD o; - CStructSD r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCStructSD(out o, result); - test(Ice.CollectionComparer.Equals(i, o)); - test(Ice.CollectionComparer.Equals(i, r)); - callback.called(); - } - public void opACVSI(Ice.AsyncResult result) { CV[] i = (CV[])result.AsyncState; @@ -804,23 +677,6 @@ public class TwowaysAMI callback.called(); } - public void opCCVSI(Ice.AsyncResult result) - { - CCVS i = (CCVS)result.AsyncState; - CCVS o; - CCVS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCCVS(out o, result); - IEnumerator<CV> eo = (IEnumerator<CV>)o.GetEnumerator(); - IEnumerator<CV> er = (IEnumerator<CV>)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(); - } - public void opACVPrxSI(Ice.AsyncResult result) { CVPrx[] i = (CVPrx[])result.AsyncState; @@ -872,16 +728,6 @@ public class TwowaysAMI callback.called(); } - public void opCCVPrxSI(Ice.AsyncResult result) - { - CCVPrxS i = (CCVPrxS)result.AsyncState; - CCVPrxS o; - CCVPrxS r = MyClassPrxHelper.uncheckedCast(result.getProxy()).end_opCCVPrxS(out o, result); - test(Ice.CollectionComparer.Equals(i, o)); - test(Ice.CollectionComparer.Equals(i, r)); - callback.called(); - } - public void opACRSI(Ice.AsyncResult result) { CR[] i = (CR[])result.AsyncState; @@ -916,23 +762,6 @@ public class TwowaysAMI callback.called(); } - 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(); - } - public void opAEnSI(Ice.AsyncResult result) { En[] i = (En[])result.AsyncState; @@ -983,16 +812,6 @@ public class TwowaysAMI callback.called(); } - 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(); - } - public void opCustomIntSI(Ice.AsyncResult result) { Custom<int> i = (Custom<int>)result.AsyncState; @@ -1070,7 +889,6 @@ public class TwowaysAMI callback.called(); } -#if !COMPACT && !SILVERLIGHT public void opSerialSmallCSharpNullI(Ice.AsyncResult result) { try @@ -1166,7 +984,6 @@ public class TwowaysAMI // OK, talking to non-C# server. } } -#endif public virtual void check() { @@ -1176,7 +993,6 @@ public class TwowaysAMI private CallbackBase callback = new CallbackBase(); } - static int _length = 100; internal static void twowaysAMI(Ice.Communicator communicator, Test.MyClassPrx p) @@ -1242,18 +1058,6 @@ public class TwowaysAMI } { - CByteS i = new CByteS(); - for(int c = 0; c < _length; ++c) - { - i.Add((byte)c); - } - - Callback cb = new Callback(); - p.begin_opCByteS(i, null, cb.opCByteSI, i); - cb.check(); - } - - { bool[] i = new bool[_length]; for(int c = 0; c < _length; ++c) { @@ -1314,18 +1118,6 @@ public class TwowaysAMI } { - CBoolS i = new CBoolS(); - for(int c = 0; c < _length; ++c) - { - i.Add(c % 1 == 1); - } - - Callback cb = new Callback(); - p.begin_opCBoolS(i, null, cb.opCBoolSI, i); - cb.check(); - } - - { short[] i = new short[_length]; for(int c = 0; c < _length; ++c) { @@ -1386,18 +1178,6 @@ public class TwowaysAMI } { - CShortS i = new CShortS(); - for(int c = 0; c < _length; ++c) - { - i.Add((short)c); - } - - Callback cb = new Callback(); - p.begin_opCShortS(i, null, cb.opCShortSI, i); - cb.check(); - } - - { int[] i = new int[_length]; for(int c = 0; c < _length; ++c) { @@ -1458,18 +1238,6 @@ public class TwowaysAMI } { - CIntS i = new CIntS(); - for(int c = 0; c < _length; ++c) - { - i.Add((int)c); - } - - Callback cb = new Callback(); - p.begin_opCIntS(i, null, cb.opCIntSI, i); - cb.check(); - } - - { long[] i = new long[_length]; for(int c = 0; c < _length; ++c) { @@ -1530,18 +1298,6 @@ public class TwowaysAMI } { - CLongS i = new CLongS(); - for(int c = 0; c < _length; ++c) - { - i.Add((long)c); - } - - Callback cb = new Callback(); - p.begin_opCLongS(i, null, cb.opCLongSI, i); - cb.check(); - } - - { float[] i = new float[_length]; for(int c = 0; c < _length; ++c) { @@ -1602,18 +1358,6 @@ public class TwowaysAMI } { - CFloatS i = new CFloatS(); - for(int c = 0; c < _length; ++c) - { - i.Add((float)c); - } - - Callback cb = new Callback(); - p.begin_opCFloatS(i, null, cb.opCFloatSI, i); - cb.check(); - } - - { double[] i = new double[_length]; for(int c = 0; c < _length; ++c) { @@ -1674,18 +1418,6 @@ public class TwowaysAMI } { - CDoubleS i = new CDoubleS(); - for(int c = 0; c < _length; ++c) - { - i.Add((double)c); - } - - Callback cb = new Callback(); - p.begin_opCDoubleS(i, null, cb.opCDoubleSI, i); - cb.check(); - } - - { string[] i = new string[_length]; for(int c = 0; c < _length; ++c) { @@ -1746,18 +1478,6 @@ public class TwowaysAMI } { - CStringS i = new CStringS(); - for(int c = 0; c < _length; ++c) - { - i.Add(c.ToString()); - } - - Callback cb = new Callback(); - p.begin_opCStringS(i, null, cb.opCStringSI, i); - cb.check(); - } - - { Ice.Object[] i = new Ice.Object[_length]; for(int c = 0; c < _length; ++c) { @@ -1782,18 +1502,6 @@ public class TwowaysAMI } { - CObjectS i = new CObjectS(); - for(int c = 0; c < _length; ++c) - { - i.Add(new CV(c)); - } - - Callback cb = new Callback(); - p.begin_opCObjectS(i, null, cb.opCObjectSI, i); - cb.check(); - } - - { Ice.ObjectPrx[] i = new Ice.ObjectPrx[_length]; for(int c = 0; c < _length; ++c) { @@ -1854,18 +1562,6 @@ public class TwowaysAMI } { - CObjectPrxS i = new CObjectPrxS(); - for(int c = 0; c < _length; ++c) - { - i.Add(communicator.stringToProxy(c.ToString())); - } - - Callback cb = new Callback(); - p.begin_opCObjectPrxS(i, null, cb.opCObjectPrxSI, i); - cb.check(); - } - - { S[] i = new S[_length]; for(int c = 0; c < _length; ++c) { @@ -1926,18 +1622,6 @@ public class TwowaysAMI } { - CStructS i = new CStructS(); - for(int c = 0; c < _length; ++c) - { - i.Add(new S(c)); - } - - Callback cb = new Callback(); - p.begin_opCStructS(i, null, cb.opCStructSI, i); - cb.check(); - } - - { CV[] i = new CV[_length]; for(int c = 0; c < _length; ++c) { @@ -1962,18 +1646,6 @@ public class TwowaysAMI } { - CCVS i = new CCVS(); - for(int c = 0; c < _length; ++c) - { - i.Add(new CV(c)); - } - - Callback cb = new Callback(); - p.begin_opCCVS(i, null, cb.opCCVSI, i); - cb.check(); - } - - { CVPrx[] i = new CVPrx[_length]; for(int c = 0; c < _length; ++c) { @@ -2034,18 +1706,6 @@ public class TwowaysAMI } { - CCVPrxS i = new CCVPrxS(); - for(int c = 0; c < _length; ++c) - { - i.Add(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString()))); - } - - Callback cb = new Callback(); - p.begin_opCCVPrxS(i, null, cb.opCCVPrxSI, i); - cb.check(); - } - - { CR[] i = new CR[_length]; for(int c = 0; c < _length; ++c) { @@ -2070,18 +1730,6 @@ public class TwowaysAMI } { - CCRS i = new CCRS(); - for(int c = 0; c < _length; ++c) - { - i.Add(new CR(new CV(c))); - } - - Callback cb = new Callback(); - p.begin_opCCRS(i, null, cb.opCCRSI, i); - cb.check(); - } - - { En[] i = new En[_length]; for(int c = 0; c < _length; ++c) { @@ -2142,18 +1790,6 @@ public class TwowaysAMI } { - CEnS i = new CEnS(); - for(int c = 0; c < _length; ++c) - { - i.Add((En)(c % 3)); - } - - Callback cb = new Callback(); - p.begin_opCEnS(i, null, cb.opCEnSI, i); - cb.check(); - } - - { Custom<int> i = new Custom<int>(); for(int c = 0; c < _length; ++c) { @@ -2211,7 +1847,6 @@ public class TwowaysAMI cb.check(); } -#if !COMPACT && !SILVERLIGHT { Serialize.Small i = null; @@ -2258,6 +1893,5 @@ public class TwowaysAMI p.begin_opSerialStructCSharp(i, null, cb.opSerialStructCSharpI, i); cb.check(); } -#endif } } |