Skip to content

Conversation

@gewarren
Copy link
Contributor

@gewarren gewarren commented Jan 27, 2026

@gewarren gewarren requested review from aelij and halter73 January 27, 2026 01:46
@gewarren gewarren requested a review from a team as a code owner January 27, 2026 01:46
Copilot AI review requested due to automatic review settings January 27, 2026 01:46
@dotnetrepoman dotnetrepoman bot added this to the January 2026 milestone Jan 27, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds comprehensive documentation for KeyedService.AnyKey, addressing issue #41346. The changes expand the existing documentation to cover additional use cases and clarify the behavior of AnyKey in different scenarios.

Changes:

  • Added structured sections explaining three main uses of KeyedService.AnyKey: service registration, querying for services, and factory patterns
  • Improved clarity in the breaking change documentation by reformatting long sentences into bulleted lists
  • Updated dates and refined language for better readability

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
docs/core/extensions/dependency-injection/overview.md Restructured the KeyedService.AnyKey section with subheadings, added documentation for querying services and factory patterns, and clarified the IMPORTANT note about .NET 10 behavior
docs/core/compatibility/extensions/10.0/getkeyedservice-anykey.md Reformatted the description, "Reason for change", and "Recommended action" sections into bulleted lists for improved readability, and updated code comment for accuracy

@gewarren gewarren merged commit e1bfc36 into dotnet:main Jan 28, 2026
9 checks passed
@gewarren gewarren deleted the anykey2 branch January 28, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing documentation for KeyedService.AnyKey

3 participants