c# - dependency inject in to an automapper resolver -
i working automapper in c# mvc4 application. utilize map dto objects view models.
i have created custom resolver resolve particular property of dto model property.
i working spring.net dependency injection , wondering possible inject straight in custom resolver?
you can part of automapper configuration this:
mapper.initialize(cfg => { cfg.constructservicesusing(objectfactory.getinstance); });
this illustration structuremap, parameter func<type, object>
sure there in spring.net can similar job.
c# asp.net-mvc-4 dependency-injection automapper spring.net
No comments:
Post a Comment