Holds the information about a single session.
コード例 #1
0
        public CflSession Enter(CflSession session)
        {
            if (!this.Sessions.Contains(session))
              {
            this.Sessions.Add(session);
              }

              this.CurrentSession = session;

              return session;
        }
コード例 #2
0
        public CflSession Enter(CflSession session)
        {
            if (!this.Sessions.Contains(session))
            {
                this.Sessions.Add(session);
            }

            this.CurrentSession = session;

            return(session);
        }
コード例 #3
0
        public void Remove(CflSession session)
        {
            if (this.Sessions.Contains(session))
              {
            this.Sessions.Remove(session);
              }

              if (this.CurrentSession == session)
              {
            this.CurrentSession = null;
              }
        }
コード例 #4
0
        public void Remove(CflSession session)
        {
            if (this.Sessions.Contains(session))
            {
                this.Sessions.Remove(session);
            }

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