Cross Wiring Dependency Injection

What is cross wiring? Cross wiring, in relation to Simple Injector and dependency injection, is the ability for Simple Injector’s dependency container to resolve services and dependencies from .NET Core’s built in configuration system. Service collection In our previous post with DI, DI with .NET 5, we discussed how dependency injection is built into the .NET Core’s framework and how services can be registered using the default built in container. This is done through the service collection and ....

July 24, 2021 · 3 min · Samuel Tambunan

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