.NET Core provides built-in support for dependency injection, a technique for achieving Inversion of Control (IoC) between classes and their dependencies. This blog will help you to understand how and why to implement dependency injection in .Net Core.
IServiceProvider is the built-in IoC container included in ASP.NET Core.
IServiceCollection is a collection of service descriptors. This collection registers services with different scope of objects (Transient, scoped, singleton).
Why should you use Dependency Injection?
Visit here - https://geeksarray.com/blog/how-to-implement-dependency-injection-in-net-core