It took me a little while to track this down so I’m posting it here. If you have resolvers that need DI you can get Automapper to use Windsor using the below.
1: Mapper.Initialize(x => x.ConstructServicesUsing(_container.Resolve));
That’s it. Automapper will now use Windsor for object construction.
No comments:
Post a Comment