Exemple #1
0
        public virtual void SetNode(byps.test.api.refs.Node v, BAsyncResult <Object> asyncResult)
        {
            BRequest_RemoteReferences_setNode req = new BRequest_RemoteReferences_setNode();

            req.vValue = v;
            transport.sendMethod(req, asyncResult);
        }
Exemple #2
0
        public virtual void SetNode(byps.test.api.refs.Node v)
        {
            BSyncResult <Object> asyncResult = new BSyncResult <Object>();

            SetNode(v, BAsyncResultHelper.ToDelegate <Object>(asyncResult));
            asyncResult.GetResult();
        }
Exemple #3
0
        // checkpoint byps.gen.cs.GenRemoteStub:133
        public async Task SetNodeAsync(byps.test.api.refs.Node v)
        {
            BRequest_RemoteReferences_setNode req = new BRequest_RemoteReferences_setNode();

            req.vValue = v;
            Task <Object> task = Task <Object> .Factory.FromAsync(transport.BeginSend <Object>, transport.EndSend <Object>, req, null);

            await task;
        }
        public override Object read(object obj1, BInput bin1, long version)
        {
            BInputBin  bin  = ((BInputBin)bin1);
            BBufferBin bbuf = bin.bbuf;
            int        n    = bbuf.getLength();
            List <byps.test.api.refs.Node> arr = new List <byps.test.api.refs.Node>(n);

            bin.onObjectCreated(arr);
            for (int i = 0; i < n; i++)
            {
                byps.test.api.refs.Node obj = (byps.test.api.refs.Node)bin.readObj(false, null);
                arr.Add(obj);
            }
            return(arr);
        }
        public override Object read(object obj1, BInput bin1, long version)
        {
            BInputBin  bin  = ((BInputBin)bin1);
            BBufferBin bbuf = bin.bbuf;
            Dictionary <String, byps.test.api.refs.Node> map = new Dictionary <String, byps.test.api.refs.Node>();

            bin.onObjectCreated(map);
            int n = bbuf.getLength();

            for (int i = 0; i < n; i++)
            {
                String key = bbuf.getString();
                byps.test.api.refs.Node value = (byps.test.api.refs.Node)bin.readObj(false, null);
                map[key] = value;
            }
            return(map);
        }