.NET Core Dependency Injection - The Booster Jab - with Steve Collins

Tuesday, 16 February 2021

"With the releases of .NET Core 2.x, 3.x and now .NET 5, more developers have now got to grips with the basics of using the default Microsoft Dependency Injection container that comes with .NET Core. However, the story does not end there...

This talk will take you beyond the basics and cover more complex topics such as

  • Avoiding unintended multiple registrations
  • Conflicts between service lifetimes
  • Understanding the Root and Scoped service providers
  • Automated service registration packages
  • Registering and resolving open generics, classes with multiple interfaces; and interfaces with multiple class implementation
  • Integrating with other DI containers
  • Key named registrations are not supported ... but I need it!
  • Getting better startup performance from your registered services
  • Thread safety and avoiding memory leaks
  • Validating and unit testing your service registrations

The talk assumes that you have already had an initial dose of DI knowledge and are now ready for a top-up to avoid some nasty bugs."

Speaker Bio

"Steve Collins is an independent software developer/architect with over 25 years of experience in the industry working with Microsoft technologies."

Steve blogs at https://SteveTalksCode.co.uk and tweets @SteveTalksCode

General Reading



  • Corriculo Recruitment - Kindly covering the venue, drinks, and helping us at each event
  • Everstack - Dan's company, helping organise and manage the user group
  • JetBrains - Prize draw sponsor (any JB product the winner likes)
  • Manning Books - Prize draw sponsor (ebook of winner's choice)
  • Packt - Prize draw sponsor (ebook of winner's choice)

Prize Draw Winners

  • Jetbrains #1: Tom L
  • Jetbrains #2: Naveen K
  • Manning ebook: Phil P
  • Packt ebook: Carlos