Tech Off Post

Single Post Permalink

View Thread: The Log VS Coupling problem. How can I use DI in these example?
  • User profile image
    wkempf

    Several possible solutions. The easiest is to inject a factory for the log service, rather than the log service itself. The class can then use the factory to create the specific instance it needs by passing the user and HTTPContext to the factory method.