-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add more uses of AnyKey #51322
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
Add more uses of AnyKey #51322
Conversation
There was a problem hiding this 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 |
Co-authored-by: Copilot <[email protected]>
Fixes #41346.
Internal previews