Пример #1
0
        public void Hello2(RpcTestInterface.Param p)
        {
            ICHelloService_Hello2_MsgIn msg = new ICHelloService_Hello2_MsgIn();

            msg.p = p;
            Func <byte[], int, ValueTuple <byte[], int, int> > f = delegate(byte[] buffer, int start)
            {
                var msgSerializeInfo = Serializer.Serialize(msg, buffer, start);
                return(msgSerializeInfo);
            };

            CallAsync.SendWithoutResponse(ChunkType, 0, (int)ProtoID.EICHelloService_Hello2_MsgIn, f);
        }
Пример #2
0
        public async MyTask <RpcTestInterface.Param> Hello3(RpcTestInterface.Param p)
        {
            ICHelloService_Hello3_MsgIn msg = new ICHelloService_Hello3_MsgIn();

            msg.p = p;
            Func <byte[], int, ValueTuple <byte[], int, int> > f = delegate(byte[] buffer, int start)
            {
                var msgSerializeInfo = Serializer.Serialize(msg, buffer, start);
                return(msgSerializeInfo);
            };
            var ret = (ICHelloService_Hello3_MsgOut)await CallAsync.SendWithResponse(ChunkType, (int)ProtoID.EICHelloService_Hello3_MsgIn, f);

            return(ret.Value);
        }