Skip to content
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

.net 8 Keyed Registration support #220

Closed
Pete-PlaytimeSolutions opened this issue Jan 16, 2024 · 3 comments
Closed

.net 8 Keyed Registration support #220

Pete-PlaytimeSolutions opened this issue Jan 16, 2024 · 3 comments

Comments

@Pete-PlaytimeSolutions
Copy link

Just wondering if supporting the new .NET 8.0 Keyed registrations, is on the roadmap for any time soon?

@Pete-PlaytimeSolutions
Copy link
Author

Pete-PlaytimeSolutions commented Jan 16, 2024

Sorry just saw a PR waiting to be merged for this, I think... so closing.

@fu-infotrack
Copy link

Do you mean #209 ?
I don't think that PR let you choose different keys for each individual implementation class.

@khellang
Copy link
Owner

It doesn't. It leverages keyed registrations behind the scenes to disambiguate multiple registrations for the same interface when decorating to avoid stack overflows. The old method was pretty hacky using a custom sub-type of Type.

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

No branches or pull requests

3 participants