Dependency injection with .NET Core

Dependency injection What is dependency injection? Dependency injection is a technique where services are injected through the constructor and interfaces are used over implementations when defining a class. It allows developers to follow the inversion of control guidelines and lossens the coupling between classes. Classes are always coupled to interfaces and not to implementations. This allows different implementations to be created and lossely couples the clasess. See link for more details....

July 22, 2021 · 4 min · Samuel Tambunan