public async MyTask <RpcTestInterface.Param> Hello3(RpcTestInterface.Param p) { ISHelloService_Hello3_MsgIn msg = new ISHelloService_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 = (ISHelloService_Hello3_MsgOut)await CallAsync.SendWithResponse(ChunkType, (int)ProtoID.EISHelloService_Hello3_MsgIn, f); return(ret.Value); }
private async MyTask Process_Hello3(int iCommunicateID, IMessage _msg) { ISHelloService_Hello3_MsgIn msg = (ISHelloService_Hello3_MsgIn)_msg; var ret = await m_service.Hello3(msg.p); ISHelloService_Hello3_MsgOut msgRet = new ISHelloService_Hello3_MsgOut(); msgRet.Value = ret; Func <byte[], int, ValueTuple <byte[], int, int> > f = delegate(byte[] buffer, int start) { var msgSerializeInfo = m_service.Serializer.Serialize(msgRet, buffer, start); return(msgSerializeInfo); }; m_service.CallAsync.SendWithoutResponse(m_service.ChunkType, iCommunicateID, (int)ProtoID.EISHelloService_Hello3_MsgOut, f); }
private IMessage Deserialize_Hello3(byte[] bytes, int iStartIndex, int iCount) { ISHelloService_Hello3_MsgIn msg = m_service.Serializer.Deserialize <ISHelloService_Hello3_MsgIn>(bytes, iStartIndex, iCount); return(msg); }