Пример #1
0
        public static bool              logout(this TMUser tmUser)
        {
            var sessionIDs = tmUser.session_sessionIds();

            if (sessionIDs.empty())
            {
                return(false);
            }
            var allOk = true;

            foreach (var sessionId in sessionIDs)
            {
                var result = tmUser.logout(sessionId);
                allOk = allOk && result;
            }
            return(allOk);
            // this could probably be done better with a List<bool> used to capture the results
            // the return value would come from an ExtMet allTrue(this List<bool> ...)
        }
Пример #2
0
 public static bool              logout(this TMUser tmUser)
 {
     return(tmUser.logout(tmUser.session_sessionId()));
 }