- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Keyed Services in ASP.NET Core | Dependency Injection Explained with Examples in .NET 8
Are you struggling with multiple implementations in .NET Dependency Injection? In this video, I’ll explain Keyed Services, a new feature introduced in .NET 8 and C# 12 that allows you to register multiple service implementations with unique keys. This feature is especially useful in ASP.NET Core applications to resolve dependency conflicts. We'll start by demonstrating the common issue of overriding services in DI, then implement Email and SMS notification services to show how Keyed Services solve this problem. By the end of this tutorial, you'll understand how to use AddKeyedScoped, inject services with [FromKeyedServices], and write cleaner, more maintainable code in ASP.NET Core.
📚 Learn More:
➤ Dependency Injection in ASP.NET Core: Singleton vs Scoped vs Transient Explained: https://youtu.be/V-8HlozCTOU
➤ .NET 9 - Implementing Repository Pattern with Minimal API & SQLite | Entity Framework Core Tutorial: https://youtu.be/bOJLgzU4M74
➤ Build CRUD API with Dapper in .NET 9 | ASP.NET Core Web API Tutorial with SQL Server :https://youtu.be/_oFCFSiXsZw
Connect with me 👋:
► GITHUB: https://www.github.com/poorna-soysa
► LINKEDIN: https://www.linkedin.com/in/poorna-soysa/
► TWITTER: https://twitter.com/TechPoorna/
👉 Support my work:
https://www.buymeacoffee.com/poorna.soysa
Don't Forget to:
👍 Like this video if you found it helpful
🔔 Subscribe for more coding tutorials
💬 Comment if you have any questions or suggestions
#aspnetcore #dotnet #dotnet8 #csharp #dependencyinjection
Видео Keyed Services in ASP.NET Core | Dependency Injection Explained with Examples in .NET 8 канала Poorna Soysa
📚 Learn More:
➤ Dependency Injection in ASP.NET Core: Singleton vs Scoped vs Transient Explained: https://youtu.be/V-8HlozCTOU
➤ .NET 9 - Implementing Repository Pattern with Minimal API & SQLite | Entity Framework Core Tutorial: https://youtu.be/bOJLgzU4M74
➤ Build CRUD API with Dapper in .NET 9 | ASP.NET Core Web API Tutorial with SQL Server :https://youtu.be/_oFCFSiXsZw
Connect with me 👋:
► GITHUB: https://www.github.com/poorna-soysa
► LINKEDIN: https://www.linkedin.com/in/poorna-soysa/
► TWITTER: https://twitter.com/TechPoorna/
👉 Support my work:
https://www.buymeacoffee.com/poorna.soysa
Don't Forget to:
👍 Like this video if you found it helpful
🔔 Subscribe for more coding tutorials
💬 Comment if you have any questions or suggestions
#aspnetcore #dotnet #dotnet8 #csharp #dependencyinjection
Видео Keyed Services in ASP.NET Core | Dependency Injection Explained with Examples in .NET 8 канала Poorna Soysa
dotnet .net dotnet tutorials .net tutotials dotnet for beginners c# asp.net dotnet core asp.net core asp.net core tutotrial keyed services .net core dependency injection keyed service dependency injection dependency injection in .net core dependency injection in c# keyedservice dependency injection .net core dependency injection asp.net core dependency injection .net dependency injection multiple implementations dependency injection c# c# keyed services
Комментарии отсутствуют
Информация о видео
15 февраля 2025 г. 18:00:17
00:07:41
Другие видео канала
























