Ejemplo n.º 1
0
        public void Delete()
        {
            TicketMgr.Instance.lck.EnterWriteLock();
            try
            {
                if (m_previous != null)
                {
                    m_previous.m_next = m_next;
                }
                if (m_next != null)
                {
                    m_next.m_previous = m_previous;
                }
                TicketMgr instance = TicketMgr.Instance;
                if (this == instance.first)
                {
                    instance.first = null;
                }
                if (this == instance.last)
                {
                    instance.last = null;
                }
                if (m_handler != null)
                {
                    m_handler.HandlingTicket = null;
                    m_handler = null;
                }

                if (m_owner != null)
                {
                    m_owner.Ticket = null;
                }
                TicketMgr.Instance.ticketsById.Remove(m_charId);
            }
            finally
            {
                TicketMgr.Instance.lck.ExitWriteLock();
            }
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     mgr     = null;
     current = null;
 }
Ejemplo n.º 3
0
 public TicketEnumerator(TicketMgr mgr)
 {
     this.mgr = mgr;
 }
Ejemplo n.º 4
0
 public void Dispose()
 {
     this.mgr     = (TicketMgr)null;
     this.current = (Ticket)null;
 }