public override void execute(BRemote __byps__remote, BAsyncResultIF <Object> __byps__asyncResult) { // checkpoint byps.gen.cs.GenApiClass:413 try { RemoteStreams __byps__remoteT = (RemoteStreams)__byps__remote; BAsyncResultSendMethod <Object> __byps__outerResult = new BAsyncResultSendMethod <Object>(__byps__asyncResult, new byps.test.api.BResult_19()); __byps__remoteT.SetImage(istrmValue, BAsyncResultHelper.ToDelegate(__byps__outerResult)); } catch (Exception e) { __byps__asyncResult.setAsyncResult(null, e); } }
public void testRemoteStreamsOneStreamChunked() { log.info("testRemoteStreamsOneStreamChunked("); String str = "hello"; Stream istrm = new MyContentStreamChunked(new MemoryStream(Encoding.ASCII.GetBytes(str))); remote.SetImage(istrm); Stream istrmR = remote.GetImage(); ByteBuffer buf = BWire.bufferFromStream(istrmR, false); String strR = Encoding.ASCII.GetString(buf.array(), buf.position(), buf.remaining()); TestUtils.assertEquals(log, "stream", str, strR); log.info(")testRemoteStreamsOneStreamChunked"); }