public void LogOutFromServer() { try { server.ClientLogOutOfServer(userName); this.userName = null; } catch (System.ServiceModel.CommunicationObjectFaultedException) { var result = MessageBox.Show("Es konnte nicht mit dem Service kommuniziert werden, weil diser sich im Faulted-Status befindet.\n Erneut versuchen ?", "", MessageBoxButton.YesNo); if (result == MessageBoxResult.Yes) { LogOutFromServer(); } else { System.Windows.Application.Current.Shutdown(); } } }
public void LogOutFromServer() { server.ClientLogOutOfServer(userName); this.userName = null; }