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

Make RegisterKeyedFactory public #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jeeyo
Copy link

@jeeyo jeeyo commented Aug 1, 2024

We exposed AutoWireAssembly<T>() for constructing keysForType dictionary for keyed DI,
but didn't expose RegisterKeyedFactory() to actually register them.

@mbhuiyan730
Copy link

How this will be used? can you please provide an example?

@jeeyo
Copy link
Author

jeeyo commented Aug 2, 2024

I wanted to do AutoWireAssembly<T> with my own custom Attribute instead of RegisterSingleton or other built-in attributes like in this method.
But the method RegisterKeyedFactory() was marked as private, so I cannot do so.

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.

2 participants