Skip to content

Dependency injection in conditions #4562

@pfeigl

Description

@pfeigl

Hi, in v12, the ServiceCtor was deprecated for very good reasons and normal DI should be used.
This is no problem with MapFrom using IValueResolver implementations.

However, without the ServiceCtor on the ResolutionContext there is now no way to do DI in Condition callbacks.
Is there any way to get DI into conditions that I'm not seeing right now?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions