Пример #1
0
 public bool logout()
 {
     try {
         aaaService service = new aaaService("https://" + mseAddr + "/aaa/");
         LogoutMethodArgs LMA = new LogoutMethodArgs();
         LMA.AesBusinessSession = new aaa.AesBusinessSession();
         LMA.AesBusinessSession.id = sessionId;
         LMA.AesLogout = new AesLogout();
         aaa.Response r2 = service.Logout(LMA);
         if (r2 != null) {
             return true;
         } else {
             Trace.WriteLine("Logout failed");
             return false;
         }
     } catch {
         return false;
     }
 }
Пример #2
0
 /// <remarks/>
 public void LogoutAsync(LogoutMethodArgs Logout1)
 {
     this.LogoutAsync(Logout1, null);
 }
Пример #3
0
 /// <remarks/>
 public void LogoutAsync(LogoutMethodArgs Logout1, object userState)
 {
     if ((this.LogoutOperationCompleted == null)) {
     this.LogoutOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLogoutOperationCompleted);
     }
     this.InvokeAsync("Logout", new object[] {
             Logout1}, this.LogoutOperationCompleted, userState);
 }
Пример #4
0
 /// <remarks/>
 public System.IAsyncResult BeginLogout(LogoutMethodArgs Logout1, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("Logout", new object[] {
             Logout1}, callback, asyncState);
 }