ASP.NET Core 2 中自动扫描应用程序中的依赖注入并自动注册

使用Scrutor可以帮助我们自动注入,而不用每次新增一个类,就要写一行代码,项目git地址是:https://github.com/khellang/Scrutor

asp.net core Scrutor 自动注入