Example #1
0
        private void LogoutAsync(bool sendServerLogout)
        {
            try
            {
                this.TabNavigation       = KeyboardNavigationMode.Cycle;
                m_mainPageBorder.Content = m_topCanvas;

                if (sendServerLogout)
                {
                    m_riaContext.Load <User>(m_riaContext.LogoutQuery(), LoadBehavior.RefreshCurrent, LogoutComplete, null);
                }

                m_userPage = null;

                UpdateAppStatus();
            }
            catch (Exception excp)
            {
                m_userPage.LogActivityMessage(MessageLevelsEnum.Error, "Exception LogoutAsync. " + excp.Message);
            }
        }