ASP.NET Core's Built-in Dependency Injection Framework
summary
Covers ASP.NET Core’s built‑in DI with concrete details: explains singleton scoped transient lifetimes, shows thread‑safe RequestIDFactory registered as a singleton producing incrementing IDs while RequestID is scoped per HTTP request, and the demo proves IDs persist across tabs and increment correctly. Shows how to hook Autofac (RegisterType and lifetime chaining) and StructureMap, and warns Ninject requires the community “missing DI extensions” workarounds and won’t cleanly inject into views.
AI-written summary · about
chapters (13)
- 0:00Start
- 1:07Summary
- 3:40What is Dependency Injection?
- 3:52OK, So What's Inversion of Control?
- 5:45What's the Big Deal?
- 9:10Dependency Injection Saves the Day
- 12:50Benefits of Dependency Injection
- 15:41Lifetime Management
- 18:55Startup Configuration
- 21:38Injecting Into Controllers
- 23:06Injecting Into Middleware
- 26:33Built-In Services Available
- 43:12What About Ninject?
related talks
53mIt depends: .NET Core dependency injection
01h 02mPatterns for application development with ASP.NET Core
16mInterview Speaker
59mClean Architecture With ASP.NET Core
57mClean architecture with ASP.NET Core
01h 00mDiagnosing issues in ASP.NET Core Applications
01h 01mASP.NET Basics for Experts
01h 00mIdentityServer4: New & Improved for ASP.NET Core
