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>();
这个在每个页面里都来一下啊?
有什么方法,请指点