Coding Shorts: .NET 8 - Introducing Keyed Services

preview_player
Показать описание
Another in my .NET 8 coding shorts, I introduce you to a new feature to have multiple instances of a dependency inside the service collection. Let me show you how they work:

You can hire me too! You can reach me at my new website:

00:00 Introduction
01:07 The Problem
02:03 Using Keyed Services
03:43 Non-Singleton Keyed Services
04:26 Keyed Service from IServiceProvider
04:56 Wrapping Up

If you like this video, you might like other videos in my Instructional Videos:
Рекомендации по теме
Комментарии
Автор

Thank you for this wonderful explanation. I learned something new about .net.

sendoganyuksel
Автор

Liked and subscribed! I love your content... Your style of explaining things is so relaxed, it makes understanding the subject matter much easier. Please post more .NET 8 goodies ... pretty please!

DirkStraussOnline
Автор

Nice to know you will update your courses on Pluralsight Shawn, thank you so much for mentioning that! And of course, thank you for keep creating this amazing content!

viniciussilvadeandrade
Автор

Autofac already had this function in 1980.
So I still miss features like assembly scan.
But for the most tiny apps and services the Microsoft think should be good enough

Kingside
Автор

Hi Shawn, thanks for the video! Do you have any example on your mind when keyed services would be useful in reallife applications? 🤔

It is not quite often when one uses explicit instances creation in Di and etc.

_IGORzysko