http://forum.entlib.com/Default.aspx?g=posts&m=101我看了這篇文章,沒問題,可我的想法是在一個asp.net頁面中應(yīng)該最I(lǐng)Logger xx{get;set}這個對象應(yīng)該是直接注入了,而不是使用 IUnity UnityCtx = Context.ApplicationInstance as IUnity; // This should find the WebLogger when trying resolve the ILogger ILogger logger = UnityCtx.Container.Resolve<ILogger>();這個在每個頁面里都來一下啊?有什么方法,請指點(diǎn)
Unity和webform的集成
哆啦的時光機(jī)
2018-11-20 05:02:29