public void Dispose() { try { if (!String.IsNullOrEmpty(_token)) { _service.logout(_token); } } catch { } finally { _token = null; } _service.Dispose(); }
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 { } }
public void logout() { if (credentials != null) { jira.logout(credentials); credentials = null; loggedIn = false; } }
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; }