public override void execute(BRemote __byps__remote, BAsyncResultIF <Object> __byps__asyncResult)
 {
     // checkpoint byps.gen.cs.GenApiClass:413
     try {
         RemotePrimitiveTypes            __byps__remoteT     = (RemotePrimitiveTypes)__byps__remote;
         BAsyncResultSendMethod <Object> __byps__outerResult = new BAsyncResultSendMethod <Object>(__byps__asyncResult, new byps.test.api.BResult_19());
         __byps__remoteT.SendAllTypes(bValue, cValue, sValue, iValue, lValue, fValue, dValue, strValue, ptValue, oValue, BAsyncResultHelper.ToDelegate(__byps__outerResult));
     } catch (Exception e) {
         __byps__asyncResult.setAsyncResult(null, e);
     }
 }
Пример #2
0
        public void testRemotePrimitiveTypesSendAll()
        {
            log.info("testRemotePrimitiveTypesSendAll(");

            PrimitiveTypes pt  = TestUtils.createObjectPrimitiveTypes();
            PrimitiveTypes pt2 = TestUtils.createObjectPrimitiveTypes();

            remote.SendAllTypes(true, 'Q', (short)34, 56, 45, 7.4f, 9.8, "23", pt, pt2);

            TestUtils.assertEquals(log, "bool", true, remote.GetBool());
            TestUtils.assertEquals(log, "char", 'Q', remote.GetChar());
            TestUtils.assertEquals(log, "short", (short)34, remote.GetShort());
            TestUtils.assertEquals(log, "int", 56, remote.GetInt());
            TestUtils.assertEquals(log, "long", 45L, remote.GetLong());
            TestUtils.assertEquals(log, "float", 7.4f, remote.GetFloat());
            TestUtils.assertEquals(log, "double", 9.8, remote.GetDouble());
            TestUtils.assertEquals(log, "String", "23", remote.GetString());
            TestUtils.assertEquals(log, "Object", pt2, remote.GetObject());
            TestUtils.assertEquals(log, "PrimtitiveTypes", pt, remote.GetPrimitiveTypes());

            log.info(")testRemotePrimitiveTypesSendAll");
        }