Autofac property injection is not working

若如初见. 提交于 2019-12-11 13:27:46

问题


i am trying to use autofac for prism. Used bootstraper project link is bellow. autofac is passes depened object when i used as contructor parameter. but it's not passes when i use as property with a import attribute.

https://bitbucket.org/stmu/prism.aufofacextension/src

it's not a prism question. autofac is not inject properties. what is my mistake? how to solve this? thanks.


回答1:


On your RegisterType calls, you most likely need to add .PropertiesAutowired().



来源:https://stackoverflow.com/questions/19348414/autofac-property-injection-is-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!