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.
Problem Statement
Currently, based on the documentation as far as I can tell, you can set a
IPropertySelectorfor 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
IPropertySelectorin lieu of theDefaultPropertySelectorat a global level. This would work for both individual registrations and assembly scanning registrations.Alternatives You've Considered
Additional Context
None.