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; } }
/// <remarks/> public void LogoutAsync(LogoutMethodArgs Logout1) { this.LogoutAsync(Logout1, null); }
/// <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); }
/// <remarks/> public System.IAsyncResult BeginLogout(LogoutMethodArgs Logout1, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("Logout", new object[] { Logout1}, callback, asyncState); }