Support for dependency injection is built into ASP.Net Core, Microsoft’s open source, cross platform, lean, and modular framework for building high performance, scalable web applications.
In ASP.Net Core, both framework services and application services can be injected into your classes, rather than being tightly coupled.
In this article we’ll look at how we can work with dependency injection in ASP.Net Core.Dependency injection (also known as DI) is a design pattern in which a class or object has its dependent classes injected (passed to it by another class or object) rather than create them directly.

Dependency injection  facilitates loose coupling and promotes testability and maintenance. Moreover, dependency injection allows you to change your implementations without having to change the classes or interfaces that leverage those implementations.To read this article in full or to leave a comment, please click here

Leave a Reply