Skip to content

Add support for keyed services. #3017

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

Merged
merged 2 commits into from
Oct 12, 2024

Conversation

AnalogFeelings
Copy link
Contributor

Description

Adds support for keyed services in constructor injection.

Changes

  • Added extra logic to detect keyed services in ReflectionUtils.GetMember

Related Issues

Closes #3016

@AnalogFeelings AnalogFeelings marked this pull request as ready for review October 12, 2024 16:32
@Misha-133
Copy link
Member

lgtm

@Misha-133
Copy link
Member

oh, yeah
Could you a note about this to the docs page?

@AnalogFeelings
Copy link
Contributor Author

Where?

@Misha-133
Copy link
Member

@AnalogFeelings
Copy link
Contributor Author

Personally I feel like it isn't necessary, as the user can probably deduce they can use standard constructor injection, including FromKeyedServices

@Misha-133 Misha-133 merged commit 3017f6b into discord-net:dev Oct 12, 2024
2 checks passed
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.

[Bug]: Keyed Services are not supported
2 participants