Skip to content

How to use in combination with AutoMapper's ConstructServicesUsing method #551

Open
@stefankip

Description

@stefankip

Hi!
I'm using Umbraco v8, which used LightInject for IoC.
In my project I also use AutoMapper v10 and I have this IValueConverter which has a dependency in the constructor.
To enable DI for this converter, I have to use the ConstructServicesUsing method.
But the type passed to this ConstructServicesUsing method is the IValueConverter itself, not the required dependencies.

So my question is; how can I create an instance of a class (not known in the services registration), which has dependencies (known in the services registration) in it's constructor using LightInject?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions