AutoMapper / AutoMapper.Extensions.Microsoft.DependencyInjection

MIT License
258 stars 79 forks source link

Invoking `AddAutoMapper` multiple times is not additive #138

Closed goldsam closed 4 years ago

goldsam commented 4 years ago

Our project is very modular with Profiles defined in several different locations. The code is cumbersome due to the requirement that AddAutoMapper must be called in a single location exactly once. This is inconsistent with the AddXXXX extension methods provided by the various Micorosft.Extensions.XXX libraries. The result of calling AddAutoMapper multiple times is a silent failure where not all mapping are registered.

It would be much more useful if mapping registrations could be registered additively by invoking AddAutoMapper multiple times.

jbogard commented 4 years ago

Have you updated? The new behavior is additive.

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.