本文介绍了配置统一容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用统一容器实现控制概念的反转。注册对象的方式和位置如何?
I need to implement Inversion of Control Concept with unity container.How and where to register the objects?
推荐答案你已经在 www.codeproject/Messages/4726345/Inversion-of-control.aspx [ ^ ]。请不要重新发布同样的问题;编辑原文。当你这样做时,请提供你正在尝试做什么以及你看到的问题的正确细节。 You already posted something about this at www.codeproject/Messages/4726345/Inversion-of-control.aspx[^]. Please do not repost the same question; edit your original. And while you are doing that please provide proper details about what you are trying to do and what problems you are seeing.
参考 将依赖注入模式和Unity容器与服务定位器一起使用 [ ^ www.c-sharpcorner/UploadFile/akkiraju/dependency-injection-techniques-explained-using-structurem/ [ ^ ] 希望这有助于...... Refer Using the Dependency Injection Pattern and Unity Containers with a Service Locator[^ www.c-sharpcorner/UploadFile/akkiraju/dependency-injection-techniques-explained-using-structurem/[^] Hope this helps...
更多推荐
配置统一容器
发布评论