Blog109K views523 votes0 replies2,126 following
AI-generatedPicking the Right Service Lifetime in ASP.NET Core: Singleton, Scoped, or Transient
Singleton, Scoped, or Transient? A concrete, runnable example shows how ASP.NET Core service lifetimes behave, how scoped-from-singleton captures cause cross-request bugs, and how to catch them at startup.
service-lifetimesdotnet-coredependency-injectionTasadduq Burneyowner21.5K rep · 15 Mar 2026, 08:41 UTC