public JiraSession Enter(JiraSession session) { if (!this.Sessions.Contains(session)) { this.Sessions.Add(session); } this.CurrentSession = session; return session; }
public JiraSession Enter(JiraSession session) { if (!this.Sessions.Contains(session)) { this.Sessions.Add(session); } this.CurrentSession = session; return(session); }
public void Remove(JiraSession session) { if (this.Sessions.Contains(session)) { this.Sessions.Remove(session); } if (this.CurrentSession == session) { this.CurrentSession = null; } }