Enterprise Library:Unity的几个注意事项
摘要:背景在.Net平台中,几乎所有的Ioc容器在注册方面都不一致,使用Unity需要注意几个事项,咱们通过实验进行验证一下。验证的内容:集合的获取。生命周期管理。实验代码 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 using Microsoft.Practices.Unity; 8 9 namespace UnityStudy10 {11 class Program12 ...
阅读全文
posted @ 2013-08-03 12:21