This is the 4th part of the series to talk about dependency injections. This time, we talk about some anti patterns.
The sample could be find on the GitHub: https://github.com/xiaomi7732/CodeWit...
Related videos:
Link to part 1 - Concepts: https://yo utu.be/YnBPjt2dBWk
Link to part 2 - DI in .NET Core & ASP.NET Core: • Design Code for Change | Dependency Inject...
Link to part 3 - Service Lifetime in DI: • Design Code for Change | Dependency Inject...
Link to part 4 - Anti Patterns in DI: • Design Code for Change | Dependency Inject...
Contents:
00:00 Intro
00:22 Anti-Pattern #1 Self-created service instance
03:26 Anti-Pattern #2 Captive Dependency
07:07 Anti-Pattern #3 Async operation in implementation factory
08:26 Recap
Thanks for watching!