Ejemplo n.º 1
0
        public static async Task <RES_LOAD_USER_GAME_DATA> Process2(REQ_LOAD_USER_GAME_DATA requestPacket)
        {
            var responseResult = new RES_LOAD_USER_GAME_DATA();

            using (var reqLock = new RequestLock(requestPacket.ID))
            {
                var error = await reqLock.요청_처리중인가();

                if (error != ERROR_ID.NONE)
                {
                    responseResult.Result = (short)error;
                    return(responseResult);
                }

                var isAuthOk = await DB.Session.CheckAuthInfoAsync(requestPacket.ID, requestPacket.AuthToken);

                if (isAuthOk == false)
                {
                    responseResult.Result = (short)ERROR_ID.LOAD_USER_GAME_DATA_AUTH;
                    return(responseResult);
                }
            }


            responseResult.Result = (short)ERROR_ID.NONE;
            return(responseResult);
        }
Ejemplo n.º 2
0
        public async Task <RES_LOAD_USER_GAME_DATA> LoadUserGameData2(REQ_LOAD_USER_GAME_DATA requestPacket)
        {
            var result = await APILogicLib.Request.LoadUserGameData.Process2(requestPacket);

            return(result);
        }
Ejemplo n.º 3
0
        public RES_LOAD_USER_GAME_DATA LoadUserGameData(REQ_LOAD_USER_GAME_DATA requestPacket)
        {
            var result = APILogicLib.Request.LoadUserGameData.Process(requestPacket);

            return(result);
        }