Dotnet logo

.NET Tools

Essential productivity kit for .NET and game developers

.NET Tools Livestreams

Webinar: .NET 5 Dependency Injection

Join us Thursday, April 8, 2021, 16:00 – 17:00 CEST (10:00 AM – 11:00 AM EDT or check other timezones) for our free live webinar, .NET 5 Dependency Injection, with Steve Collins.

Register now and get a reminder, or join on YouTube

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

Register for the webinar

You can attend this webinar on YouTube, or register here to get a reminder closer to the webinar.

About the presenter:

Steve Collins
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.

image description