Skip to content

AddAutoMapper overload which takes an IServiceProvider is missing in v15 #4550

@meinsiedler

Description

@meinsiedler

We just tried to upgrade to v15 and we were using the overload of AddAutoMapper which takes an IServiceProvider as action parameter:

services.AddAutoMapper(
    (serviceProvider, config) => { ... });

These overloads were removed with this commit: 0d390e5#diff-15ece5c4061cbb9ebb94ea7c836b3deececf5e2e638eb5021db82eaaf4c33536

This is a breaking change and not documented somewhere, so I'm not sure if this is intentional or a bug? What would be the alternative if we wanted to resolve services from the service provider while building the configuration?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions