public bool login() { aaaService service = new aaaService("https://" + mseAddr + "/aaa/"); //Login LoginMethodArgs LM = new LoginMethodArgs(); AesLogin AL = new AesLogin(); AL.userName = mseUser; AL.password = msePasswd; LM.AesLogin = AL; try { Session s = service.Login(LM); if (s != null) { aaa.AesBusinessSession AB = (aaa.AesBusinessSession)s.AesBusinessSession; if (verbosity) Trace.WriteLine("\nConnection ID = " + AB.id); sessionId = AB.id; return true; } } catch (Exception x) { Trace.WriteLine(x); return false; } return false; }
/// <remarks/> public void LoginAsync(LoginMethodArgs Login1) { this.LoginAsync(Login1, null); }
/// <remarks/> public void LoginAsync(LoginMethodArgs Login1, object userState) { if ((this.LoginOperationCompleted == null)) { this.LoginOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLoginOperationCompleted); } this.InvokeAsync("Login", new object[] { Login1}, this.LoginOperationCompleted, userState); }
/// <remarks/> public System.IAsyncResult BeginLogin(LoginMethodArgs Login1, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("Login", new object[] { Login1}, callback, asyncState); }