配置统一容器 [英] Configure unity Container

查看:73
本文介绍了配置统一容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用统一容器实现控制概念的反转。注册对象的方式和位置如何?

I need to implement Inversion of Control Concept with unity container.How and where to register the objects?

推荐答案

你已经在 http://www.codeproject.com/Messages/4726345/Inversion-of-control.aspx [ ^ ]。请不要重新发布同样的问题;编辑原文。当你这样做时,请提供你正在尝试做什么以及你看到的问题的正确细节。
You already posted something about this at http://www.codeproject.com/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容器与服务定位器一起使用 [ ^



http://www.c-sharpcorner.com/UploadFile/akkiraju/dependency-injection-techniques-explained-using-structurem/ [ ^ ]



希望这有助于......
Refer

Using the Dependency Injection Pattern and Unity Containers with a Service Locator[^

http://www.c-sharpcorner.com/UploadFile/akkiraju/dependency-injection-techniques-explained-using-structurem/[^]

Hope this helps...


这篇关于配置统一容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆