unity container - 'AutoMapper.Configuration' is a 'namespace' but is used like a 'type' -


i trying upgrade automapper 1.1 automapper 3.3. have following statement in current code not work in v3.3

container.registertype<iconfiguration, global::automapper.configuration>(new containercontrolledlifetimemanager()); 

container unity container. getting following error.

'automapper.configuration' 'namespace' used 'type'

how change statement work automapper 3.3

found out automapper.configuration changed

automapper.configurationstore

the following line works.

container.registertype<iconfiguration, global::automapper.configurationstore>(new containercontrolledlifetimemanager()); 

Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -