Skip to content

Add Ability to Set a global IPropertySelector #1435

@jwyza-pi

Description

@jwyza-pi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions