Welcome to our deep dive into advanced Dependency Injection (DI) scenarios in ASP.NET Core! 🚀
In this video, we'll explore three powerful DI techniques that will elevate your development skills:
1. Scoped Services in Singleton Services: Learn how to use scoped services within singleton services effectively.
2. Conditional Service Implementations: Discover how to implement different services based on specific conditions.
3. Generic Services and DI: Understand the flexibility of generic services and how to register them efficiently.
Dependency Injection is a fundamental part of ASP.NET Core, but mastering these advanced features can significantly improve your application's performance and maintainability.
Highlights:
00:00 Introduction
01:42 Utilizing Scoped Services in Singleton
02:27 Example: Scoped dbContext in Singleton Reporting Service
05:40 Conditional Service Implementations
06:28 Example: EmailSender Mock for Development Environment
08:47 Generic Services and DI
09:39 Example: Generic Repository Pattern
If you find this video helpful, don't forget to like, share, and subscribe for more programming tutorials and tips!
Subscribe: / @markocodeacademy
Thank you for watching, and happy coding! 😊
Watch video Advanced ASP.NET Core Dependency Injection: Scoped, Conditional, Generic Services online without registration, duration hours minute second in high quality. This video was added by user Marko Code Academy 07 August 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 60 once and liked it 2 people.