Esempio n. 1
0
        public ResponseData RequestLogin(RequestData dbRequest)
        {
            try
            {
                var serializer = MessagePackSerializer.Get<DB.RequestLogin>();
                var request = serializer.UnpackSingleObject(dbRequest.Datas);

                return RequestLoginValue(ERROR_CODE.NONE, dbRequest);
            }
            catch
            {
                return RequestLoginValue(ERROR_CODE.DB_LOGIN_EXCEPTION, dbRequest);
            }
        }
Esempio n. 2
0
        ResponseData RequestLoginValue(ERROR_CODE result, RequestData dbRequest)
        {
            var reqponseData = new ResponseData()
            {
                PacketID = PACKET_ID.DB_RESPONSE_LOGIN,
                SessionID = dbRequest.SessionID,
                PacketProcessIndex = dbRequest.PacketProcessIndex,
            };

            var response = new DB.ResponseLogin() { Result = result, UserID = dbRequest.UserID };
            var serializer = MessagePackSerializer.Get<DB.ResponseLogin>();
            reqponseData.Datas = serializer.PackSingleObject(response);

            return reqponseData;
        }
Esempio n. 3
0
 public void InsertRequest(RequestData request)
 {
     RequestQueue.Enqueue(request);
 }
Esempio n. 4
0
 public void InsertRequest(RequestData request)
 {
     RequestQueue.Enqueue(request);
 }