Esempio n. 1
0
        public virtual void PutSharedStream(long id, System.IO.Stream stream, BAsyncResult <Object> asyncResult)
        {
            BRequest_RemoteStreams_putSharedStream req = new BRequest_RemoteStreams_putSharedStream();

            req.idValue     = id;
            req.streamValue = stream;
            transport.sendMethod(req, asyncResult);
        }
Esempio n. 2
0
        // checkpoint byps.gen.cs.GenRemoteStub:133
        public async Task PutSharedStreamAsync(long id, System.IO.Stream stream)
        {
            BRequest_RemoteStreams_putSharedStream req = new BRequest_RemoteStreams_putSharedStream();

            req.idValue     = id;
            req.streamValue = stream;
            Task <Object> task = Task <Object> .Factory.FromAsync(transport.BeginSend <Object>, transport.EndSend <Object>, req, null);

            await task;
        }
Esempio n. 3
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            BRequest_RemoteStreams_putSharedStream obj = (BRequest_RemoteStreams_putSharedStream)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bbuf.putLong(obj.idValue);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.streamValue, false, null);
        }
Esempio n. 4
0
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin bin = (BInputBin)bin1;
            BRequest_RemoteStreams_putSharedStream obj = (BRequest_RemoteStreams_putSharedStream)(obj1 != null ? obj1 : bin.onObjectCreated(new BRequest_RemoteStreams_putSharedStream()));

            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.idValue = bbuf.getLong();
            // checkpoint byps.gen.cs.PrintContext:449
            obj.streamValue = (System.IO.Stream)bin.readObj(false, null);

            return(obj);
        }