How to inject named logger generic ILogger as ILogger into constructor using IServiceCollection and NLog

后端 未结 0 1323
鱼传尺愫
鱼传尺愫 2021-01-15 02:22

I want to inject the generic implementation of ILogger into the constructor of MyClass without its generic parameters.

Exampl

相关标签:
回答
  • 消灭零回复
提交回复
热议问题