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

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -