← Back
Nick Chapsas November 27, 2025 30s

Keyed Services are awesome in .NET

Summary

In this Dotnet development tip, the focus is on resolving multiple implementations of the same interface using the dependency injection (DI) container. The key solution involves using key services to manage different implementations, which is particularly useful for strategy patterns and multi-tenant scenarios. By leveraging this approach, developers can effectively resolve and inject multiple implementations through constructors or methods, overcoming the limitation of the DI container only registering the last implementation.

View original episode ↗