Ejemplo n.º 1
0
        void IGreeterRpc_NoReply.SessionParameter(EuNet.Core.ISession session)
        {
            var _writer_ = NetPool.DataWriterPool.Alloc();

            try
            {
                _writer_.Write((int)IGreeterRpc_Enum.SessionParameter);

                SendRequest(_writer_);
            }
            finally
            {
                NetPool.DataWriterPool.Free(_writer_);
            }
        }
Ejemplo n.º 2
0
        void ILoginRpc_NoReply.Login(string id, EuNet.Core.ISession session)
        {
            var _writer_ = NetPool.DataWriterPool.Alloc();

            try
            {
                _writer_.Write((int)ILoginRpc_Enum.Login);
                _writer_.Write(id);

                SendRequest(_writer_);
            }
            finally
            {
                NetPool.DataWriterPool.Free(_writer_);
            }
        }
Ejemplo n.º 3
0
        public async Task <string> SessionParameter(EuNet.Core.ISession session)
        {
            var _writer_ = NetPool.DataWriterPool.Alloc();

            try
            {
                _writer_.Write((int)IGreeterRpc_Enum.SessionParameter);

                using (var _reader_ = await SendRequestAndReceive(_writer_))
                {
                    return(_reader_.ReadString());
                }
            }
            finally
            {
                NetPool.DataWriterPool.Free(_writer_);
            }
        }
Ejemplo n.º 4
0
        public async Task <int> Login(string id, EuNet.Core.ISession session)
        {
            var _writer_ = NetPool.DataWriterPool.Alloc();

            try
            {
                _writer_.Write((int)ILoginRpc_Enum.Login);
                _writer_.Write(id);

                using (var _reader_ = await SendRequestAndReceive(_writer_))
                {
                    return(_reader_.ReadInt32());
                }
            }
            finally
            {
                NetPool.DataWriterPool.Free(_writer_);
            }
        }
Ejemplo n.º 5
0
 public abstract Task <string> SessionParameter(EuNet.Core.ISession session);
Ejemplo n.º 6
0
 public abstract Task <int> Login(string id, EuNet.Core.ISession session);