http://forum.entlib.com/Default.aspx?g=posts&m=101我看了这篇文章,没问题,可我的想法是在一个asp.net页面中应该最ILogger xx{get;set}这个对象应该是直接注入了,而不是使用 IUnity UnityCtx = Context.ApplicationInstance as IUnity; // This should find the WebLogger when trying resolve the ILogger ILogger logger = UnityCtx.Container.Resolve<ILogger>();这个在每个页面里都来一下啊?有什么方法,请指点
2 回答
- 2 回答
- 0 关注
- 665 浏览
添加回答
举报
0/150
提交
取消