You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 theDefaultPropertySelector
at a global level. This would work for both individual registrations and assembly scanning registrations.Alternatives You've Considered
Additional Context
None.
The text was updated successfully, but these errors were encountered: