It looks like Autofac only supports the generic hosting API, IHostBuilder
. I wonder if the old asp netcore 2.x documentation is still relevant to asp netcore 3 applications.
Also, I found https://github.com/autofac/Autofac.AspNetCore has not been updated for a long time, so I guess Autofac has no intention to support IWebHostBuilder
in the future...
Do we have any guideline about how to set up Autofac in AspNetCore 3.x using the IWebHostBuilder
API?
I read about [this][https://stackoverflow.com/questions/59980827/service-fabric-aspnet-core-3-1-autofac-webhostbuilder] post, and it does not answer my question.