How to use Property Injection with AutoFac?
问题 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. I'm using AutoFac IoC container, how to inject my log Object to the Log property of my every class? What's the best/easiest way to achieve this? Is there any way to