protected void S2D_ReqUserInfo(IIncommingMessage reader) { var msg = reader.Parse <Msg_ReqAccountData>(); _authDb.GetAccount(msg.account, (dbData) => { reader.Respond(EMsgDS.D2S_RepUserInfo, new Msg_RepAccountData() { accountData = dbData as AccountData }); }); }
protected void OnMsg_S2D_ReqUserInfo(IServerProxy proxy, Deserializer reader) { var msg = reader.Parse <Msg_ReqAccountData>(); _authDb.GetAccount(msg.account, (dbData) => { proxy.SendMsg(EMsgDS.D2S_RepUserInfo, new Msg_RepAccountData() { accountData = dbData as AccountData }); }); }