Dependency injection And Service Lifetime in ASP.NET Core
Sep 16, 2023 · 3 min read · Dependency injection is a technique of providing a dependent object from outside rather than the class creating using the new keyword. Pros:1. It increased modularity2. It improves testability3. Centralize place to provide the dependency4. Decouple...
Join discussion