Raja
Why Dependency injection is loosely coupled?

Interviewer asked if either parameter or method newly added in interface then the whole method or parameter handled in controller.
Then how we told Dependency injection as loosely coupled….

By Raja in .NET Core on Sep 08 2022
  • Vinay Kumar Dara
    Oct, 2022 12

    Because the created instance is reused as per used service lifecycle injection Ex: AddSingleton, AddTransient & AddScopedIf DI is not used, separate instances will be created where those instances cannot be reused - so called tightly coupled.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS