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.
Subscribe to Blog updates
ReSharper 2024.1 EAP 7: Updates to C# and C++ Support
The ReSharper 2024.1 EAP 7 build has just been released and is ready for you to download! This build contains several improvements to C# and C++ support. Let’s take a look! C# support You will get suggestions to convert more code constructions in your source code to collection express…
Boost Code Quality with Qodana and GitHub Actions
It’s been roughly half a year since we introduced Qodana to .NET in our blog post about how to elevate your C# code quality with Qodana. Since then, we’ve been quite busy! Qodana went out of preview and into GA. Furthermore, we greatly improved the integration with our IDEs, providing an effortless …
Rider 2024.1 EAP 6: Updated New Project Dialog, Custom Naming Rules, and VCS Improvements
The latest installment in the Rider 2024.1 Early Access Program has just been released, and it’s jam-packed with updates. Before you download it, let’s take a look at the major changes. Updated New Project dialog To help reduce your cognitive load as you configure new projects, we have thor…
ReSharper 2024.1 EAP 6: The Most Feature-Rich Update Yet
The latest installment in the Early Access Program for ReSharper 2024.1 has just been released, and it's jam-packed with exciting updates. Let’s take a look at some of the highlights: Performance Faster Rename refactoring Renaming elements in your code is now faster and more efficient. T…