Esempio n. 1
0
        void IGreeterRpc_NoReply.GreetEnum(Rpc.Test.Interface.DataEnum dataEnum)
        {
            var _writer_ = NetPool.DataWriterPool.Alloc();

            try
            {
                _writer_.Write((int)IGreeterRpc_Enum.GreetEnum);
                NetDataSerializer.Serialize <Rpc.Test.Interface.DataEnum>(_writer_, dataEnum);
                SendRequest(_writer_);
            }
            finally
            {
                NetPool.DataWriterPool.Free(_writer_);
            }
        }
Esempio n. 2
0
        public async Task GreetEnum(Rpc.Test.Interface.DataEnum dataEnum)
        {
            var _writer_ = NetPool.DataWriterPool.Alloc();

            try
            {
                _writer_.Write((int)IGreeterRpc_Enum.GreetEnum);
                NetDataSerializer.Serialize <Rpc.Test.Interface.DataEnum>(_writer_, dataEnum);
                await SendRequestAndWait(_writer_);
            }
            finally
            {
                NetPool.DataWriterPool.Free(_writer_);
            }
        }
Esempio n. 3
0
 public abstract Task GreetEnum(Rpc.Test.Interface.DataEnum dataEnum);