Top
image credit: Pxhere

How to avoid redundant DI code in ASP.NET Core

June 23, 2021

Via: InfoWorld

When working with controllers in web applications using ASP.NET Core or ASP.NET Core MVC, you might have encountered code redundancy. For example, you might have come across controllers that use dependency injection (DI) to inject services that they need. If the code that injects the dependencies has been reused in multiple controllers, then you have code redundancy and violation of the DRY principle (don’t repeat yourself).

Read More on InfoWorld