public QueueProperty[] GetPropertys(int size) { var ie = this.queueDictionary.GetEnumerator(); var count = 0; var propertys = new QueueProperty[size]; // while (ie.MoveNext() && count < size) { var qp = new QueueProperty(); // var item = ie.Current; var value = item.Value; // qp.name = item.Key; qp.count = value.itemQueue.count; qp.wait = value.deliverQueue.count; qp.pull = value.pullCounter; // propertys[count] = qp; // count++; } // return(propertys); }
public QueueProperty GetProperty(string queueName) { var queue = this.GetQueue(queueName); if (queue == null) { return(null); } // var qp = new QueueProperty(); // qp.name = queueName; qp.count = queue.itemQueue.count; qp.wait = queue.deliverQueue.count; qp.pull = queue.pullCounter; // return(qp); }