Published On Dec 15, 2023
Want to dynamically switch between service implementations? In .NET 8 you can.
Source code available at: https://github.com/JasperKent/RockPap...
Related videos:
- C# 12 Collection Expressions • C# 12 Collection Expressions and the ...
- The Single Responsibility Principle • SOLID: The Single Responsibility Prin...
- SignalR • SignalR
- C# 12 Primary Constructors • C# 12 Primary Constructors
Topics include:
- Calling a web service from a Blazor front end.
- The Strategy Pattern.
- The limitations of traditional Dependency Injection.
- Configuring Keyed Dependency Injection.
- Dynamically injecting a service using IServiceProvider.
- Injection with the FromKeyedServices attribute.
- Injecting multiple services of the same interface.