Загрузка...

How do you resolve scoped services in a background service?

Find out how you can resolve scoped and transient service lifetimes in an ASP.NET Core background service by creating a new scope.

You'll also learn how to create a new scope when using multithreading and why it's important to do so.

This is part 5 of our dependency injection in ASP.NET Core course
The full course ► https://www.youtube.com/playlist?list=PLNLqfquXi7rs_B1IJAswkXnRpn9_j7eOI

💻 Download the code example💻
https://www.roundthecode.com/dotnet-code-examples/dependency-injection-asp-net-core?utm_source=youtube&utm_medium=referral&utm_campaign=zlsoXIsPxxo+-+video+content+%28code+example%29

► Read the tutorial:
https://www.roundthecode.com/dotnet-tutorials/how-do-you-resolve-scoped-services-background-service?utm_source=youtube&utm_medium=referral&utm_campaign=zlsoXIsPxxo+-+video+content+%28tutorial%29

🎓 .NET tutorials, code examples and coding challenges 🎓
https://www.roundthecode.com/?utm_source=youtube&utm_medium=referral&utm_campaign=zlsoXIsPxxo+-+video+content+%28roundthecode%2Ecom%29

► Chapters
0:00 The problem with scoped and transient services
0:56 Create a new scope in a background service
4:49 Multithreading
7:34 Unit testing dependency injection

Видео How do you resolve scoped services in a background service? канала Round The Code
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять