示例#1
0
        public void Dispose()
        {
            try { if (!String.IsNullOrEmpty(_token))
                  {
                      _service.logout(_token);
                  }
            }
            catch { }
            finally { _token = null; }

            _service.Dispose();
        }
示例#2
0
        private void doStuff(string user, string pwd)
        {
            string txt = "successfully invoked login/logout at ";

            try {
                JiraSoapServiceService s = new JiraSoapServiceService();
                s.Url     = "https://studio.atlassian.com//rpc/soap/jirasoapservice-v2";
                s.Timeout = 2000;
                string token = s.login(user, pwd);
                s.logout(token);
            } catch (Exception e) {
                txt = "caught exception " + e.Message + " at ";
            }

            try {
                Invoke(new MethodInvoker(delegate {
                    textLog.Text = txt + DateTime.Now.ToLongTimeString() + "\r\n" + textLog.Text;
                    if (inProgress)
                    {
                        t.Start();
                    }
                }));
            } catch {
            }
        }
示例#3
0
 public void logout()
 {
     if (credentials != null)
     {
         jira.logout(credentials);
         credentials = null;
         loggedIn    = false;
     }
 }
示例#4
0
 private static void LogOut(JiraSoapServiceService service, string token)
 {
     try
     {
         service.logout(token);
     }
     catch
     {
     }
 }
 void Disconnect()
 {
     jira.logout(jiraToken);
 }
 public void logout()
 {
     service.logout(Token);
     Token = null;
 }