Dependency injection fundamentals in C# - DI vs IoC vs DIP

preview_player
Показать описание
In today's video we're going to cover Dependency Injection fundamentals.

We'll cover Dependency Injection (DI), the Dependency Inversion Principle (DIP), Inversion of Control (IoC, IoC container). We'll talk about what each of these are, what the difference between them is, and how we can apply these principals via an example and leveraging the Microsoft.Extensions.DependencyInjection nuget package.

Connect with me on 'em socials:

Check out all my courses on DomeTrain:

Support the channel and get the source code:

Thanks for watching, don't forget to like & comment & subscribe! ❤️ 💻
Рекомендации по теме
Комментарии
Автор

Dude! I'm a programmer of over 20 years and I've never seen it explained this clearly and concisely before.

tiffaleyshon
Автор

Your content is great. I am following you since a year and I have learned alot. Surely gonna buy those courses.

noneedtoknowthishandle
Автор

This video is amazing

Can’t wait for the next one.

issamboutissante
Автор

5:06
Man, finally it clicked. I'm so happy thank you.
Dependency injection. Such a fancy word for an obvious concept.
But now it makes sense, you are injecting a dependency rather than sticking with a specific dependency.

mohannadqa
Автор

This is the best video explaining those concepts. Amazing, thank you.

ertackosucu
Автор

Nice clear and practical take. Excellent job !

AK-vxdy
Автор

I could just say it's AMAZING <3

QVMaster
Автор

great explanation amichai, thank you :)

jilqnqx
Автор

nice, we need more content like this, good job!

kamilmikua
Автор

Hey Amichai, have you ever thought about making videos about Modular Monoliths? Thanks for the video btw :)

thijsvandervegt
Автор

Hi Amichai, it would be great if you could slow down just a little bit - say 5%. Its a little hard to keep up at that speed :) OH dont worry, i discovered that you can run it at 75% speed., although you do sound as if you have had a few too many beers ...

margosdesarian
Автор

Hi mate. Awesome video! thank you for the great explanation.

Luiz-yoqf
Автор

Could you consider making a video about what is the difference between making the validation inside the valueobjects, entities and with fluentValidation, could we mix and match these validations and what is the best approach.

itsgddemon
Автор

Bro, I was always confused between these terms, Thank you for this awesome video.

shahzadahmad-vgou
Автор

Thank you for very nice and clean explanation.
I have a few questions:
1. As you need Service provider to be built, does that mean that you can register services only on startup of the application or is there a technique to safely register services during runtime ?
2. Let's say I have DbContext from entity framework and I have two databases meaning they have two different connection strings. Is there a way to use EF with dependency injection in a way that would be able to resolve the correct database ?

And again thank you for great explanation it was very helpful to me.

adamsontag
Автор

hey, first of all thank you for the video. maybe quite an newbie question but how do you generate the classes and method so fast? is it a shortcut/key or is it something like copilot? thank you very much!

mercyfulM
Автор

Awesome! Maybe I ask what you use for drawing on the screen during the screen record?

theanachronism
Автор

Another great lesson!
Would you please consider making more videos on c# core concepts needed for .NET? 😊

davidjiang
Автор

What tool do you use to draw in your videos?

JackFord
Автор

Silly question, but what if GithubClient accepted some parameters as well? How would I register it in the DI container?

FarmerWidmo