Example #1
0
        public JiraSession Enter(JiraSession session)
        {
            if (!this.Sessions.Contains(session))
              {
            this.Sessions.Add(session);
              }

              this.CurrentSession = session;

              return session;
        }
Example #2
0
        public JiraSession Enter(JiraSession session)
        {
            if (!this.Sessions.Contains(session))
            {
                this.Sessions.Add(session);
            }

            this.CurrentSession = session;

            return(session);
        }
Example #3
0
        public void Remove(JiraSession session)
        {
            if (this.Sessions.Contains(session))
              {
            this.Sessions.Remove(session);
              }

              if (this.CurrentSession == session)
              {
            this.CurrentSession = null;
              }
        }
Example #4
0
        public void Remove(JiraSession session)
        {
            if (this.Sessions.Contains(session))
            {
                this.Sessions.Remove(session);
            }

            if (this.CurrentSession == session)
            {
                this.CurrentSession = null;
            }
        }