private void AddQueueEvent(BattleNet.QueueEvent.Type queueType, int minSeconds = 0, int maxSeconds = 0, int bnetError = 0, BattleNet.GameServerInfo gsInfo = null)
    {
        BattleNet.QueueEvent         item        = new BattleNet.QueueEvent(queueType, minSeconds, maxSeconds, bnetError, gsInfo);
        Queue <BattleNet.QueueEvent> queueEvents = this.m_queueEvents;

        lock (queueEvents)
        {
            this.m_queueEvents.Enqueue(item);
        }
    }
    public BattleNet.QueueEvent GetQueueEvent()
    {
        BattleNet.QueueEvent         event2      = null;
        Queue <BattleNet.QueueEvent> queueEvents = this.m_queueEvents;

        lock (queueEvents)
        {
            if (this.m_queueEvents.Count > 0)
            {
                event2 = this.m_queueEvents.Dequeue();
            }
        }
        return(event2);
    }