.NET Core - Dependency Injection Lifecycles

preview_player
Показать описание
Transient? Scoped? Singleton? They're all available - but be careful how you mix them.

Рекомендации по теме
Комментарии
Автор

Any more you want to know on DI? Just ask.
And if you liked the video, click the 👍.

CodingTutorialsAreGo
Автор

This is the best explanation currently (Jan 2024) on youtube. Everything else mumbo-jumbo

nickcodes
Автор

Thank you very much, very interesting

foudilbenouci
Автор

This is the cleanest explanation of this concept I've seen so far. All other courses just recite things without examples like you did. Thank you!

amrmoneer
Автор

You sir have awesome tutorials both for beginners and advance users

brunokucevic
Автор

Ah, this is causing a few things to click. Thanks for the video!

natepepin
Автор

Thank you for great videos. Can you clarify one little moment? When we are registering BookReviewRepo as Transient and ReviewAggregator as Singleton - application works in proper way. But if we have change BookReviewRepo to Scoped we got an exception. As you mentioned in video when ReviewAggregator configured(Singleton) it gets only one\1st instance of BookREviewRepo(Transient). But why it doesn't work in the same way for Scoped(BookReviewRepo)? We could had have only first instance of ReviewRepo like it has been done using Transient way.

ЕдвардГригорян-нк
Автор

thank you, pls continue these good videos

arash
Автор

If possible please show how to inject if multiple classes implement same interface.. Thank you for the video.

Praveen.Kumar.