C# Dependency Injection Explanation in .NET Core

  Рет қаралды 36,459

Billy Tech

Billy Tech

Күн бұрын

Пікірлер: 55
@RafaAyadi
@RafaAyadi Жыл бұрын
Best explanation of DI on the internet. Thank you sir. Cheers from France.
@killia999
@killia999 4 жыл бұрын
I have to say, this is the first time I've ever understood what Dependency Injection is all about... too bad it's now 1AM and I'll forget it by the time I get up tomorrow. Great video! Thanks!
@triptisharma4731
@triptisharma4731 4 жыл бұрын
Same! Lol
@Alex-ABPerson
@Alex-ABPerson 3 жыл бұрын
I mean technically it's been scientifically proven that you remember stuff you learn well before you go to sleep, as it's fresh in your memory and your brain often processes your memories as you sleep ;)
@killia999
@killia999 3 жыл бұрын
@@Alex-ABPerson Yeeah... that never worked for me once :P
@Alex-ABPerson
@Alex-ABPerson 3 жыл бұрын
@Trevor Jonathan What does that have to do with this video? Or is this a bot
@kipersonic0
@kipersonic0 4 жыл бұрын
Why this video was a tremendously good investment of my time: • Your explanation helped me understand the relationship between a Dependency Injection framework (in this case the one included in .NET Core) and the Moq library. • The way you created and declared the container in the Program class was another "aha!" moment for me. • Your voice speed is great for playing the video at 1.5x. Thank You so much.
@elijahcrosby6141
@elijahcrosby6141 3 жыл бұрын
I guess it is kind of randomly asking but does anyone know a good place to watch newly released series online?
@joemiles8402
@joemiles8402 3 жыл бұрын
@Elijah Crosby Flixportal :D
@elijahcrosby6141
@elijahcrosby6141 3 жыл бұрын
@Joe Miles thank you, signed up and it seems to work =) Appreciate it!
@joemiles8402
@joemiles8402 3 жыл бұрын
@Elijah Crosby glad I could help :)
@satishvanahalli
@satishvanahalli 2 жыл бұрын
I have gone through plenty of documentations and videos. This is by far the best. Thank you.
@umair1661
@umair1661 2 жыл бұрын
One of the most excellent explanation of DI. Although its 5AM and my eyes are hurting, but worth every second.
@abdellatifmerouan
@abdellatifmerouan 3 жыл бұрын
I would like to say Thank you a lot. I spent more then 3 months trying to understand Dependency Injection without success. This is the first time I were able to understand this topic. thanks again. Great Video!
@pmro
@pmro Жыл бұрын
I read Microsoft documentation, watched few videos and still couldn't fully understand how to implement DI... until Your video, thank You! Now I know what DI is, for what reason we use it, and how DI influence app architecture and design pattern.
@joyfulitconsultant6310
@joyfulitconsultant6310 4 жыл бұрын
By far the best explanation given about dependency injection in my opinion. I just loved the way you teach.
@dwainbrowne
@dwainbrowne 4 жыл бұрын
Really appreciate the effort that went into this video. I've struggled with some of these concepts for years and you have certainly cleared things up for me. Well done and thank you!!
@burakmutlu4156
@burakmutlu4156 5 жыл бұрын
Thanks man! This saved me a lot time. Documentations in the web make one confused about the issue and that's so rough to go over them. But your clarification and going over the issue with simple implementation slowly is so much understandable for beginners like us. Thank u again I appreciated it a lot.
@slavo.zhurba
@slavo.zhurba 2 жыл бұрын
Omg man, there’s best explain of di and ioc container I’ve seen🔥🔥🔥. All clear and simple. Thnx!
@CAPS_AMERICA
@CAPS_AMERICA 4 жыл бұрын
If I could like this over and over I would. This is simple direct to the point tutorial of IoC principle that's easy to understand and unlike the other tutorials about DI from Lynda and PluralSight that are padded with talks which bores the learner, this one pretty much clears up my confusion, and has added up learning on MS container and unit testing. Thank you and please keep making tutorials on .net.
@faraz-online
@faraz-online 4 жыл бұрын
That Really turned out to be a very Excellent & Quite Comprehensive Walkthrough really presenting the need of main need and importance of Dependency Injection Billy! Thanks!!!
@lightweave
@lightweave Жыл бұрын
Very nice video! It's great because it shows a somewhat realistic enough scenario in full detail. 👍
@gilkdemoraesrodrigues8884
@gilkdemoraesrodrigues8884 3 жыл бұрын
Thank you very much.. the charts you put together and the easy implementation was perfect to teach/learn this!
@kumarsourav8851
@kumarsourav8851 2 жыл бұрын
This is the best video on dependency injection. Great content. But where is Billy? Don't see any recent videos on the channel.
@rjamil
@rjamil 3 жыл бұрын
2021 and I'm learning new things aside from Dependency Injection! Thanks!
@jamesfleming8238
@jamesfleming8238 4 жыл бұрын
I think this might be the clearest explanation, at 32:11 when you showed the diagram, it all just clicked :D Cheers
@rlclark50
@rlclark50 3 жыл бұрын
Great walk through with basic implementation of DI patterns.
@akshat9117
@akshat9117 Жыл бұрын
Really love it....cleared all my doubts.....
@King-mj2bn
@King-mj2bn 2 жыл бұрын
Excellent and crystal clear breakdown of DI. Wish you had spent more time on Moq, though. That part felt rushed and I'm still extremely fuzzy on mock objects.
@jomynn
@jomynn 2 жыл бұрын
Thank you for Dependency Injection.
@rpo3ge
@rpo3ge 5 жыл бұрын
Great explanation, it is easier than it looks on paper definitely.
@sen.alexandru
@sen.alexandru 4 жыл бұрын
amazing explanation. congrats Billy!
@papamoneyph
@papamoneyph 3 жыл бұрын
excellent explanation, very clear and on point
@liliya9284
@liliya9284 4 жыл бұрын
Really liked the video. Thank you so much for a great explanation. You should do your course on LinkedIn.
@janezvegan
@janezvegan 3 жыл бұрын
Thank you for this good explanation
@fiji895
@fiji895 3 жыл бұрын
great video man, thank you!
@tevinmorake8924
@tevinmorake8924 3 жыл бұрын
Brilliant Billy!
@bradleynall2698
@bradleynall2698 4 жыл бұрын
This was great. Thank you for this.
@cavanbiggs9179
@cavanbiggs9179 3 жыл бұрын
Great video showing implementation before and after, it would be awesome if you could do a series showing the standard design patterns. subbed!
@davidpinto4192
@davidpinto4192 4 жыл бұрын
Awesome video. Thanks!
@soderiv9125
@soderiv9125 5 жыл бұрын
Thanks this helped a lot.
@Shakti_Singh_Om
@Shakti_Singh_Om 5 жыл бұрын
excellent video. thanks a lot.
@DedicatedManagers
@DedicatedManagers 4 жыл бұрын
Looks like it would be a great video. Unfortunately I watch videos at night when I have time and it’s on my phone because that’s what I have near me. The font is so small on my phone I can’t even make it out. It would be nice if you use a larger font size.
@010101dddm
@010101dddm 4 жыл бұрын
Perfect explanation. Is there a source code of this example?
@rubayethkamal210
@rubayethkamal210 4 жыл бұрын
nicely explained
@omirrrr
@omirrrr 4 жыл бұрын
It looked like you weren't using Dependency Injection with the tests, but manuallly instantiating classes and passing to the constructor. Could you instead have just changed the IProductStockRepository in the service container to be the mock version instead?
@junaid_aslam
@junaid_aslam 3 жыл бұрын
Nice stuff.
@bulgarian388
@bulgarian388 5 жыл бұрын
I have a question... Say you're using MediatR to send a command for the app to do something, and the handler has one or more dependencies. You "could" pass the Container to the command (which can get ugly fast), and then have the command handler use that to get its dependencies, but how would/could you do it without passing the Container around? Great tutorial otherwise, thanks for taking the time to make it! I think you can skip the product.ToString() when you're in an interpolated string though.
@vemareddys
@vemareddys 4 жыл бұрын
How to handle dependency injection in the case of single interface implemented by multiple classes.
@ejnickiii
@ejnickiii 2 жыл бұрын
This was great! You should be a professor :-) #NewSub
@brahmcdude685
@brahmcdude685 3 жыл бұрын
why are all DI videos on youtube so convoluted???????
@brahmcdude685
@brahmcdude685 3 жыл бұрын
example is very complicated. it could be much simpler.
@1101claus
@1101claus 4 жыл бұрын
Great video, Thanks!
Dependency Injection in .NET Core (.NET 6)
1:00:32
IAmTimCorey
Рет қаралды 197 М.
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН
"Идеальное" преступление
0:39
Кик Брейнс
Рет қаралды 1,4 МЛН
Dependency Injection простыми словами
18:17
devschacht “Девшахта”
Рет қаралды 88 М.
Clean Architecture with ASP.NET Core 9
27:01
dotnet
Рет қаралды 39 М.
How Dependency Injection Works in #csharp
43:52
Raw Coding
Рет қаралды 56 М.
Dependency injection fundamentals in C# - DI vs IoC vs DIP
13:30
Amichai Mantinband
Рет қаралды 44 М.
Dependency Injection | Prime Reacts
28:34
ThePrimeTime
Рет қаралды 365 М.
C# Dependency Injection with Autofac
54:45
IAmTimCorey
Рет қаралды 298 М.
8 await async mistakes that you SHOULD avoid in .NET
21:13
Nick Chapsas
Рет қаралды 317 М.
Structuring Dependency Injection In ASP.NET Core The Right Way
16:22
Milan Jovanović
Рет қаралды 55 М.
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН