Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/Build/BackEnd/BuildManager/BuildManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,15 @@ void Callback(object? state)
ThreadPoolExtensions.QueueThreadPoolWorkItemWithCulture(Callback, parentThreadCulture, parentThreadUICulture);
}

/// <summary>
/// Point in time snapshot of all worker processes leveraged by this BuildManager.
/// This is meant to be used by VS. External users should not this is only best-effort, point-in-time functionality
/// without guarantee of 100% correctness and safety.
/// </summary>
/// <returns>Enumeration of <see cref="Process"/> objects that were valid during the time of call to this function.</returns>
public IEnumerable<Process> GetWorkerProcesses()
=> (_nodeManager?.GetProcesses() ?? []).Concat(_taskHostNodeManager?.GetProcesses() ?? []);

/// <summary>
/// Clears out all of the cached information.
/// </summary>
Expand Down