Esempio n. 1
0
        private void ExecuteLoggedIn(Action <ConfluenceSoapServiceService, string> code)
        {
            ConfluenceSoapServiceService confluence = null;
            var token = string.Empty;

            try
            {
                confluence = new ConfluenceSoapServiceService
                {
                    Url = this.Url
                };
                token = confluence.login(this.UserName, this.Password);

                code(confluence, token);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
            finally
            {
                if (confluence != null)
                {
                    confluence.logout(token);
                }
            }
        }
Esempio n. 2
0
 public void Dispose()
 {
     if (m_soapAuthToken != "")
     {
         m_soapService.logout(m_soapAuthToken);
         m_soapAuthToken = "";
     }
 }
 public void Logout()
 {
     try {
         _confluenceService.logout(_token);
     } catch (System.Web.Services.Protocols.SoapException) {
         return;
     }
 }
 public void logout()
 {
     if (credentials != null)
     {
         confluence.logout(credentials);
         credentials = null;
         loggedIn    = false;
     }
 }
Esempio n. 5
0
 public void Logout()
 {
     if (_credentials != null)
     {
         _confluence.logout(_credentials);
         _credentials = null;
         _loggedIn    = false;
     }
 }
Esempio n. 6
0
 /// <summary>
 /// Dispose-aðgerð.
 /// </summary>
 public void Dispose()
 {
     confluence.logout(wiki_access_token);
     confluence.Dispose();
 }