Esempio n. 1
0
        public IEnumerable <TaskInfo> GetTasks()
        {
            var workItems  = clrDriver.EnumerateManagedWorkItems();
            var timerTasks = clrDriver.EnumerateTimerTasks();

            return(workItems.Concat(timerTasks)
                   .Select(clrDriver.GetTaskInfo)
                   .Where(o => o != null));
        }
Esempio n. 2
0
 public override IEnumerable <ManagedWorkItem> EnumerateManagedWorkItems() =>
 driver.EnumerateManagedWorkItems().Select(oi => new CoreManagedWorkItem(oi));