Discussion about this post

User's avatar
pawan sharma's avatar

Greate Explanation

Expand full comment
Neural Foundry's avatar

The diagram simplifies this way better than most docs. The "never inject Scoped into Singleton" warning is critical but so many devs learn it the hard way after weird bugs in production. I've debuged that exact scenario before where a DbContext was accidentally injected into a singleton service and it took hours to figure out why data wasnt updating. The thread-safety callout for Singletons is also spot on.

Expand full comment

No posts

Ready for more?