private void loadUserFileAndCheckGUID(Action action, IMyLog log) { string email = Data_AppUserFile.API_IdToEmail(m_RequId); if (email == null) { throw new ArgumentException("X-APIId unknown"); } DSSwitch.appUser().Update_General(email, delegate(Data_AppUserFile user, Object args) { m_User = user; if (m_User == null) { throw new ArgumentException("X-APIId unknown"); } if (!m_User.IsAccountActive(m_Message)) { throw new ArgumentException("Account not active (1). " + m_User.AccountStatusExplained()); } if (m_User.ApiGuId != m_RequId) { throw new ArgumentException("X-APIId unknown"); } action(); }, null, null, log); }