public IEnumerable <TaskInfo> GetTasks() { var workItems = clrDriver.EnumerateManagedWorkItems(); var timerTasks = clrDriver.EnumerateTimerTasks(); return(workItems.Concat(timerTasks) .Select(clrDriver.GetTaskInfo) .Where(o => o != null)); }
public override IEnumerable <ManagedWorkItem> EnumerateManagedWorkItems() => driver.EnumerateManagedWorkItems().Select(oi => new CoreManagedWorkItem(oi));