Exemplo n.º 1
0
        public void Hello()
        {
            ISHelloService_Hello_MsgIn msg = new ISHelloService_Hello_MsgIn();
            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.EISHelloService_Hello_MsgIn, f);
        }
Exemplo n.º 2
0
        private IMessage Deserialize_Hello(byte[] bytes, int iStartIndex, int iCount)
        {
            ISHelloService_Hello_MsgIn msg = m_service.Serializer.Deserialize <ISHelloService_Hello_MsgIn>(bytes, iStartIndex, iCount);

            return(msg);
        }
Exemplo n.º 3
0
        private async MyTask Process_Hello(int iCommunicateID, IMessage _msg)
        {
            ISHelloService_Hello_MsgIn msg = (ISHelloService_Hello_MsgIn)_msg;

            m_service.Hello();
        }