Home > Net >  Dependency injection
Dependency injection

Time:12-16


How do I realize dependency injection in asp.net, where should be how to configure, is not the core asp.net. Hope predecessors,

CodePudding user response:

Dependency injection is one of the inversion of control is implemented, is one of the program design idea, not the so-called configuration, not Java, Spring Boot framework itself is the idea, if it is ASP.NET, suggest to understand first what is the dependency injection and inversion of control, in order to use it well
https://www.cnblogs.com/zhaopei/p/5078539.html
Look at this article

CodePudding user response:

Didn't pay attention to, and it says that one is a bit messy, look at the
https://www.cnblogs.com/jin-/p/9683694.html

CodePudding user response:

What do you say first you use components,
Sometimes see a person to ask the way, I knew he is Posting machine,

CodePudding user response:

To understand the
 public static IMyService Serv {get; The set; } 
this straightforward definition "static", don't entangled with what "injection",
  • Related