"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."
"Steve Collins is an independent software developer/architect with over 25 years of experience in the industry working with Microsoft technologies."
Other Links from the Talk
- Steve's blog post : Middleware Styles
- Jimmy Bogard blog P ost: Constrained Open Generics Support Merged in .NET Core DI Container
- MS Docs - ActivatorUtilities
- On.NET Show - C# 9 records
- My Blog Post: C# 9 Record Factories
- My Blog Post: Simplifying DI With Functions
- My Blog Post: Named and Keyed Dependencies
- Andrew Lock Blog Post: Reducing Latency in DI Startup
- 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