public static List <WorkItem> GetWorkItems(int count, WorkItemPriorityEnum priority) { using (var query = new WorkItemQuery()) { return(query.InternalGetWorkItems(count, priority)); } }
public static List<WorkItem> GetWorkItems(int count, WorkItemPriorityEnum priority) { using (var query = new WorkItemQuery()) { return query.InternalGetWorkItems(count, priority); } }
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); }