コード例 #1
0
        partial void SessionReleased(ReleaseSessionCompletedEventArgs e)
        {
            try
            {
                SessionToken = null;

                ApplicationEx.Instance.ApplicationMenu.Clear();

                // Go back to the starting view of the app
                if (ApplicationEx.Instance.ActivityHostFrame != null && ApplicationEx.Instance.LoginViewUri != null)
                    ApplicationEx.Instance.ActivityHostFrame.Navigate(ApplicationEx.Instance.LoginViewUri);

                if (e.Error != null)
                {
                    ////MessageBox.Show(e.Error.Message);
                    return;
                }

                if (LoggedOut != null)
                    LoggedOut(this, new EventArgs());
            }
            finally
            {
            }
        }
コード例 #2
0
        partial void SessionReleased(ReleaseSessionCompletedEventArgs e)
        {
            try
            {
                SessionToken = null;

                ApplicationEx.Instance.ApplicationMenu.Clear();

                // Go back to the starting view of the app
                if (ApplicationEx.Instance.ActivityHostFrame != null && ApplicationEx.Instance.LoginViewUri != null)
                {
                    ApplicationEx.Instance.ActivityHostFrame.Navigate(ApplicationEx.Instance.LoginViewUri);
                }

                if (e.Error != null)
                {
                    ////MessageBox.Show(e.Error.Message);
                    return;
                }

                if (LoggedOut != null)
                {
                    LoggedOut(this, new EventArgs());
                }
            }
            finally
            {
            }
        }
コード例 #3
0
        private void RemoteService_ReleaseSessionCompleted(object sender, ReleaseSessionCompletedEventArgs e)
        {
            _serverApplicationService.RemoteService.ReleaseSessionCompleted -= RemoteService_ReleaseSessionCompleted;

            ApplicationEx.Instance.HasOpenSession = false;

            SessionReleased(e);
        }
コード例 #4
0
partial         void SessionReleased(ReleaseSessionCompletedEventArgs e);
コード例 #5
0
        private void RemoteService_ReleaseSessionCompleted(object sender, ReleaseSessionCompletedEventArgs e)
        {
            _serverApplicationService.RemoteService.ReleaseSessionCompleted -= RemoteService_ReleaseSessionCompleted;

            ApplicationEx.Instance.HasOpenSession = false;

            SessionReleased(e);
        }
コード例 #6
0
 partial void SessionReleased(ReleaseSessionCompletedEventArgs e);