Blog · 1 files
| Name | Tags | Date | Read |
|---|---|---|---|
| August 2026 · 1 posts | |||
| transient-scoped-singleton-captive-dependency.md Service lifetimes in ASP.NET Core: transient, scoped, singleton and the captive dependency trap What transient, scoped and singleton really mean, how a scoped DbContext gets trapped in a singleton, how scope validation catches it, and how to handle background services, thread safety, keyed services (.NET 8) and HttpClient lifetimes. .NET | #dotnet #aspnet-core #dependency-injection | 6 min | |