Episode 24: Dependency Injection in .NET with Steve Collins
In this episode, I was joined by Steve Collins to chat all about dependency injection in .NET. We (well, Steve!) demystified terms such as dependency inversion and inversion of control containers, and then delved into the world of dependency injection in .NET, covering scopes, and much more…
Steve’s bio
Steve Collins is an independent software developer/architect with over 25 years of experience in the industry. He started developing in early ’80s on ZX Spectrum, self-taught BASIC and Z80 Assembler. Then professionally with Microsoft technologies since the early 90s starting with VB3 through to .NET5. He’s spoken at user groups / DDD conferences around the UK and also at NDC London 2021.
Links from the show
- Steve’s video from his .NET Oxford talk
- Dependency injection in ASP.NET Core (msdocs)
- Steve’s blog post on delegates - “Simplifying Dependency Injection with Functions over Interfaces”
- Steve ‘Ardalis’ Smith – “New is Glue”
- Moq
- NSubstitute
- Rocks
- Source generator cookbook
- Source generator project directory
- Jon Skeet blog post re. Singleton pattern
- Andrew Lock’s blog post on IHostLifetime
- Andrew Lock’s blog post on handling disposables
- Steve Gordon’s Pluralsight course
- SharpLab.io