Dependency Injection Deep Dive | .NET & C# Essentials

Опубликовано: 06 Октябрь 2024
на канале: Amichai Mantinband
23,841
962

In today's video we'll dive into Dependency Injection in .NET & ASP.NET.

We'll cover almost everything you need to know about integrating dependency injection in your applications from the various lifetimes to every single configuration method on the dependency injection Inversion of Control (IoC) container.
 
Connect with me on 'em socials: 
Twitter:   / amantinband  
LinkedIn:   / amantinband  
GitHub: https://github.com/amantinband

Check out all my courses on DomeTrain: 
https://dometrain.com/author/amichai-...

Support the channel and get the source code:
  / amantinband  

Thanks for watching, don't forget to like & comment & subscribe! ❤️ 💻

0:00. Opening
0:59. Registering controllers
2:43. Registering services
7:18. Implementing what ASP.NET does using the IServiceCollection and the ServiceProvider
09:10. Transient lifetime
11:21. Singleton lifetime
18:38. Scoped lifetime
27:35. Multiple Registrations
30:16. Keyed services
32:44. TryAdd methods
34:20. Service descriptor and the Add method
35:20. TryAddEnumerable