Skip to content

simplify process code #5171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

SimonCropp
Copy link
Contributor

@SimonCropp SimonCropp commented Mar 4, 2025

less code and fixes some missing usings

@@ -5,9 +5,13 @@ namespace Microsoft.Testing.Platform.Helpers;

internal interface IProcessHandler
{
IProcess GetProcessById(int pid);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add the new needed APIs without removing the existing ones.

While it's internal, it's used by HangDump via IVT.

This means, if user updates core MTP but didn't update HangDump, it will fail with MissingMethodException. While this has happened multiple times in the past already, let's be careful to avoid it whenever possible.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also hard Deprecate that old api? It should not fail on runtime, but should not build for new code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants