Skip to content

Don't use SatisfyImportsOnce for NuGetSolutionManagerService - #7586

Merged
zivkan merged 1 commit into
devfrom
dev-zivkan-NuGetSolutionManagerService-MEF
Jul 23, 2026
Merged

zivkan merged 1 commit into
devfrom
dev-zivkan-NuGetSolutionManagerService-MEF

Conversation

@zivkan

@zivkan zivkan commented Jul 22, 2026

Copy link
Copy Markdown
Member

Bug

Fixes: follow VS guidelines, possible minor perf win

Description

Our internal VS perf guidelines say not to use SatisfyImportsOnce: https://dev.azure.com/devdiv/DevDiv/_wiki/wikis/DevDiv.wiki/51933/%E2%9D%8C-DO-NOT-call-ICompositionService.SatisfyImportsOnce

So, switch it to use GetService<T> instead.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests minor refactor, no funcional changes. No existing unit tests, and uses static ServiceLocator, making it hard to mock. Tested manually, putting a breakpoint in the code path to ensure that it runs. Apex tests open PM UI, which also tests this code path.
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc. N/A

@zivkan
zivkan requested a review from a team as a code owner July 22, 2026 10:56
@zivkan
zivkan merged commit c75cbf3 into dev Jul 23, 2026
17 of 18 checks passed
@zivkan
zivkan deleted the dev-zivkan-NuGetSolutionManagerService-MEF branch July 23, 2026 10:20
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.

2 participants