Dependency Injection for Absolute Beginners with C# and .NET
Dependency Injection can be daunting at first. In this video I make an attempt to explain it to you as simple as possible. By flying in a couple of C# code snippets we learn how to turn a hard reference into a dependency that is injection. But why stop there? Let's decouple our code more by adding interfaces in the mix.
Last but not least, you will see what constructor injection is and what a DI container is. Hungry for more? Let me know in the comments what you'd like to see!
💝 Join this channel to get access to perks:
https://www.youtube.com/channel/UCBBZ2kXWmd8eXlHg2wEaClw/join
🛑 Don't forget to subscribe to my channel for more cool content: https://www.youtube.com/GeraldVersluis/?sub_confirmation=1
🔗 Links
ASP.NET Core Dependency Injection Docs: https://docs.microsoft.com/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-5.0
⏱ Timestamps
0:00 Intro
0:28 Core of Dependency Injection
1:42 Dependency Injection with Concrete Implementation
2:38 Different Ways of Injection: Constructor Injection, Method Injection and Property Injection
4:08 Why Dependency Injection?
5:10 Dependency Injection with Interfaces: Loosely Coupled Code
7:25 3 Reasons to Use Interfaces with Dependency Injection
9:55 Dependency Injection Containers
11:53 There are Frameworks That Already Do This! Why You Want to Use That
12:53 Advantages & Disadvantages
15:48 Outro
🎥 Video edited with Camtasia (ref): https://techsmith.z6rjha.net/AJoeD
🙋♂️ Also find my...
Blog: https://blog.verslu.is
Twitch: https://twitch.tv/jfversluis
All the rest: https://jfversluis.dev
Видео Dependency Injection for Absolute Beginners with C# and .NET канала Gerald Versluis
Last but not least, you will see what constructor injection is and what a DI container is. Hungry for more? Let me know in the comments what you'd like to see!
💝 Join this channel to get access to perks:
https://www.youtube.com/channel/UCBBZ2kXWmd8eXlHg2wEaClw/join
🛑 Don't forget to subscribe to my channel for more cool content: https://www.youtube.com/GeraldVersluis/?sub_confirmation=1
🔗 Links
ASP.NET Core Dependency Injection Docs: https://docs.microsoft.com/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-5.0
⏱ Timestamps
0:00 Intro
0:28 Core of Dependency Injection
1:42 Dependency Injection with Concrete Implementation
2:38 Different Ways of Injection: Constructor Injection, Method Injection and Property Injection
4:08 Why Dependency Injection?
5:10 Dependency Injection with Interfaces: Loosely Coupled Code
7:25 3 Reasons to Use Interfaces with Dependency Injection
9:55 Dependency Injection Containers
11:53 There are Frameworks That Already Do This! Why You Want to Use That
12:53 Advantages & Disadvantages
15:48 Outro
🎥 Video edited with Camtasia (ref): https://techsmith.z6rjha.net/AJoeD
🙋♂️ Also find my...
Blog: https://blog.verslu.is
Twitch: https://twitch.tv/jfversluis
All the rest: https://jfversluis.dev
Видео Dependency Injection for Absolute Beginners with C# and .NET канала Gerald Versluis
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Dependency Injection Explained with Lifetimes Singleton/Transient (C# Example)Three Data-Binding Tricks for Xamarin.Forms You Didn't Know!Dependency InjectionWhat is Dependency Injection? | Why | SpringUsing and Creating Behaviors for your UI controls in Xamarin FormsGet Filthy Rich by Monetizing Your Xamarin.Forms App with AdMobDependency Injection & Inversion of ControlInterfaces in C# - What they are, how to use them, and why they are so powerful..NET MAUI Preview 4: Time For You To Get Started?.NET Core Console App with Dependency Injection, Logging, and SettingsC# Dependency Injection with Real Time ExampleAmazing Data Visualization with CarouselView in Xamarin.FormsDependency Injection using Microsoft Unity Application block ( DI IOC) - 30 minutes trainingLongPress, Animations and More with TouchEffects in Xamarin.CommunityToolkitFinding Your Way with the Xamarin.Essentials Geolocation APIC# Async / Await - Make your app more responsive and faster with asynchronous programmingDependency Injection простыми словамиC# Dependency Injection with AutofacASP NET Core dependency injection tutorialUsing MessagingCenter in Xamarin.Forms