阅读背景:

如何在AutoFac中使用Property Injection?

来源:互联网 

In a Console application, I'm using Log4Net and in the Main method I'm getting the logger object. Now, I'd like to make this log object available in all my classes by letting all the classes inherit from a BaseClass which has a ILog property and is supposed to be set by Property Injection rather than Constructor Injection.In a Console application, I'm using Log4Net and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: