예제 #1
0
 public void OnBeginShutdown(ref System.Array custom)
 {
     try
     {
         if (_Soap != null && _Soap.LoggedIn)
         {
             _Soap.Logout();
         }
         _Soap = null;
     }
     catch (WebException)
     {
         //Ignore it
     }
 }
예제 #2
0
 private void MakeNewSoap(CookieContainer cookieJar)
 {
     if (_Soap != null)
     {
         _Soap.Logout();
     }
     _Soap = new EQUELLASOAP(
         InstitutionURL,
         null, null,
         null, null, null, cookieJar);
     //keep alive
     if (keepAlive != null)
     {
         keepAlive.Abort();
         keepAlive.Join();
     }
     keepAlive      = new Thread(new ThreadStart(DoKeepAlive));
     keepAlive.Name = "Keep Alive";
     keepAlive.Start();
 }
예제 #3
0
 public void StartLoginSession(CookieContainer cookieJar)
 {
     //MakeNewSoap(cookieJar);
     _Soap = null;
 }
예제 #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="profile"></param>
 /// <returns>false to invalidate the change request</returns>
 public bool ProfileChanged(Profile oldProfile, Profile newProfile)
 {
     //MakeNewSoap(Utils.CookieJar);
     _Soap = null;
     return(true);
 }