Exemplo n.º 1
0
 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();
         }
     }
 }
Exemplo n.º 2
0
 public void LogOutFromServer()
 {
     server.ClientLogOutOfServer(userName);
     this.userName = null;
 }