Exemplo n.º 1
0
        protected internal virtual CapacitySchedulerQueueInfoList GetQueues(CSQueue parent
                                                                            )
        {
            CSQueue parentQueue = parent;
            CapacitySchedulerQueueInfoList queuesInfo = new CapacitySchedulerQueueInfoList();

            foreach (CSQueue queue in parentQueue.GetChildQueues())
            {
                CapacitySchedulerQueueInfo info;
                if (queue is LeafQueue)
                {
                    info = new CapacitySchedulerLeafQueueInfo((LeafQueue)queue);
                }
                else
                {
                    info        = new CapacitySchedulerQueueInfo(queue);
                    info.queues = GetQueues(queue);
                }
                queuesInfo.AddToQueueInfoList(info);
            }
            return(queuesInfo);
        }