Skip to content

TryGetKeyedServiceKey<T>; allow [ServiceKey] injection during AnyKey resolution - #1476

Merged
tillig merged 5 commits into
developfrom
feature/keyed-fixes
Feb 13, 2026
Merged

TryGetKeyedServiceKey<T>; allow [ServiceKey] injection during AnyKey resolution#1476
tillig merged 5 commits into
developfrom
feature/keyed-fixes

Conversation

@tillig

@tillig tillig commented Feb 13, 2026

Copy link
Copy Markdown
Member
  • Adds a new TryGetKeyedServiceKey<T> method to allow retrieving the parameter without having to handle exceptions.
  • Fixes an issue where resolving a keyed collection using AnyKey would not pass the key parameter down the stack and, thus, wouldn't obey [ServiceKey] marked constructor parameters.

@codecov

codecov Bot commented Feb 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.55%. Comparing base (acb2557) to head (f0b3b96).
⚠️ Report is 6 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1476      +/-   ##
===========================================
- Coverage    78.57%   78.55%   -0.03%     
===========================================
  Files          216      216              
  Lines         5611     5604       -7     
  Branches      1207     1209       +2     
===========================================
- Hits          4409     4402       -7     
  Misses         695      695              
  Partials       507      507              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tillig
tillig merged commit 40d167b into develop Feb 13, 2026
10 checks passed
@tillig
tillig deleted the feature/keyed-fixes branch February 13, 2026 21:29
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.

1 participant