Exemplo n.º 1
0
 public static List <WorkItem> GetWorkItems(int count, WorkItemPriorityEnum priority)
 {
     using (var query = new WorkItemQuery())
     {
         return(query.InternalGetWorkItems(count, priority));
     }
 }
Exemplo n.º 2
0
 public static List<WorkItem> GetWorkItems(int count, WorkItemPriorityEnum priority)
 {
     using (var query = new WorkItemQuery())
     {
         return query.InternalGetWorkItems(count, priority);
     }
 }
Exemplo n.º 3
0
        internal static List <WorkItem> GetWorkItems(int statThreadsAvailable, int normalThreadsAvailable)
        {
            List <WorkItem> list = null;

            if (statThreadsAvailable > 0)
            {
                list = WorkItemQuery.GetWorkItems(statThreadsAvailable, WorkItemPriorityEnum.Stat);
            }

            if ((list == null || list.Count == 0) && normalThreadsAvailable > 0)
            {
                list = WorkItemQuery.GetWorkItems(normalThreadsAvailable, WorkItemPriorityEnum.High);
            }

            if ((list == null || list.Count == 0) && normalThreadsAvailable > 0)
            {
                list = WorkItemQuery.GetWorkItems(normalThreadsAvailable, WorkItemPriorityEnum.Normal);
            }

            return(list);
        }