u/spurius_tadiusin r/dotnet • Recommends
On “How does .net core dependency injection work”
There’s a really nice video from “raw coding” that goes through building a primitive DI container in .net (link below). It’s helpful for understanding what goes on behind the scenes even if it’s not exactly how Microsoft’s framework is implemented.
The concepts aren’t too hard but DI containers are often bewildering because there’s a lot of stuff that occurs “by convention” and not easy to infer what’s happening unless you’ve been using these a lot.
link to this video