ASP.Net Core 3.1 With Autofac ConfigureServices returning an System.IServiceProvider isn't supported. 前言 Autofac在ASP.Net Core3.0以后,集成方式有所调整.在ASP.Net Core2中我们一般是把Startup的ConfigureServices方法返回值类型改为IServiceProvider.我们可以先看一下部分代码: public IServiceProvider…