예제 #1
0
 private void MainWindow_OnWindowClosing(object sender, CancelEventArgs e)
 {
     //sending logout request:
     UserServiceProxy.Logout(new LogoutRequest {
         UserName = AuthenticatedUser.Instance.UserName
     });
     //shut down the application:
     App.Current.Shutdown();
 }