Webinar: .NET 5 Dependency Injection
Since the release of .NET Core (now.NET 5), more developers are making use of dependency injection by using the default Microsoft Dependency Injection container that comes out of the box with .NET Core. This default implementation is sometimes limited in what it can do when compared to the features found in other containers available for the platform. In addition, there are some pain points that you may encounter if you have not read all of the documentation.
This talk will take you beyond the basics of the Microsoft container and covers more complex topics such as:
- Explaining the limitations of the default container
- Integrating with other DI containers
- Perceived conflicts between service lifetimes
- Understanding the Root and Scoped service providers used with different lifetimes
- Thread safety and avoiding memory leaks, particularly with Singletons
- Understanding deliberate and unintended multiple registrations
- Registering and resolving classes with multiple interfaces
- Registering and resolving multiple class implementations of a single interface
- Registering and resolving open generics
- Keyed and named registrations are not supported … but I need it!
- How traditional design patterns such as Factory, Builder and Decorator can be integrated
- Using delegate functions over OOP interfaces and classes
- Automated service registration
About the presenter:
Steve Collins is an independent software developer with over 25 years’ experience in the industry working with Microsoft technologies.
Steve has been giving talks in person and virtually to user groups and community conferences around the UK, focusing on his pet subjects of Dependency Injection and Configuration in .NET.
Steve blogs at https://SteveTalksCode.co.uk.
Follow Steve on Twitter.