.NET 8 Keyed Dependency Injection

preview_player
Показать описание
Want to dynamically switch between service implementations? In .NET 8 you can.

Related videos:

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.
Рекомендации по теме
Комментарии
Автор

Is keyed DI something you've been crying out for? Or does it just complicate things? Leave a comment.
And if you liked the video, click the 👍.

CodingTutorialsAreGo
Автор

Extremely useful feature. Thanks for bringing it to light

liquidpebbles
Автор

I use keyed DI in Autofac, very useful.

DNI
Автор

Thanks very much to keeping us up to dated with new features!

GambitVil
Автор

Nice clear video, with an understandable worked example. Very good 👍

codingbloke
Автор

Hi there, thanks for the tutorial on this new feature for .NET 8. Although a potentially useful feature, I'm not a big fan of injecting IServiceProvider. Would it not be nicer if instead you could inject a dictionary of the key and object type?

Odawggy
Автор

Hi, i was looking for some kind of course to explain the fundamentals of threading in .NET, but it seems all I can find is focused on async/await, or it's not really good quality.

Could you consider making a video about threading concepts and how to manage them with .NET (not just .NET Core)? I'm looking for explanations about types of threads, stack vs heap, race conditions, synchronization, deadlocks, thread pools, different ways to create threads, UI threads and dispatchers, App domains etc... there is potentially a lot to cover

Gheadache
Автор

Nice!!!
(But way too much advanced for me)

Lonchanick
Автор

Why call it DEPENDENCY INJECTION? What’s wrong with calling it Method Parameter …. simple English?

anm