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

Add Ability to Set a global IPropertySelector #1435

Open
jwyza-pi opened this issue Dec 2, 2024 · 0 comments
Open

Add Ability to Set a global IPropertySelector #1435

jwyza-pi opened this issue Dec 2, 2024 · 0 comments

Comments

@jwyza-pi
Copy link

jwyza-pi commented Dec 2, 2024

Problem Statement

Currently, based on the documentation as far as I can tell, you can set a IPropertySelector for individual registrations, but you cannot do so globally.

In my use case, I'd like to have a custom IPropertySelector, but I want to apply it to all registrations made unless explicitly overridden. In our case we want to enforce a specific subset of things we allow for property injection globally.

Desired Solution

A mechanism where you can set a custom IPropertySelector in lieu of the DefaultPropertySelector at a global level. This would work for both individual registrations and assembly scanning registrations.

Alternatives You've Considered

  • Manually doing it on each registration.
  • Just hoping that no one accidentally tries to use it in scenarios where we don't want them to.
  • Not using property injection.

Additional Context

None.

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

1 participant