Unity和webform的集成

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>();

这个在每个页面里都来一下啊?

有什么方法,请指点


哆啦的时光机
浏览 666回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP