Should my Services be Transient, Scoped, or Singleton?

Опубликовано: 20 Март 2026
на канале: Bald. Bearded. Builder.
17,959
696

The basics of Transient, Scoped, and Singleton .NET dependency injection lifetime scopes. This video covers the basics of each scope, including when it's best to use each, when not to use each, and an important reminder of something you should never do when registering your services.

Don't forget to comment, like and subscribe 🚀

00:00 - Let's do this!
00:25 - Transient Services
01:02 - Scoped Services
01:41 - Singleton Services
02:26 - Example of all three
03:00 - A big gotcha about registering scopes

💬 JOIN US
MEMBERSHIP: https://bbb.dev/ytjoin
DISCORD: https://bbb.dev/discord

#csharp #dotnet