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 { } }
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 { } }
private void RemoteService_ReleaseSessionCompleted(object sender, ReleaseSessionCompletedEventArgs e) { _serverApplicationService.RemoteService.ReleaseSessionCompleted -= RemoteService_ReleaseSessionCompleted; ApplicationEx.Instance.HasOpenSession = false; SessionReleased(e); }
partial void SessionReleased(ReleaseSessionCompletedEventArgs e);