Use Autofac IoC Container in ASP.NET or ASP.NET Core
Getting started — How to use Autofac for dependency injection in .NET and .NET Core?
Autofac is an IoC container for .NET. It manages the dependencies between classes so that applications stay easy to change as they grow in size and complexity. Autofac is the most popular DI/IoC container for ASP.NET and it works with .NET Core flawlessly.