dotnet-csharp-dependency-injection Advanced Microsoft.Extensions.DependencyInjection patterns for .NET applications. Covers service lifetimes, keyed services (net8.0+), decoration, factory delegates, scope validation, and hosted service registration. Cross-references: [skill:dotnet-csharp-async-patterns] for async patterns, [skill:dotnet-csharp-configuration] for binding. --- Service Lifetimes | Lifetime | Registration | When to Use | |----------|-------------|-------------| | Transient | | Lightweight, stateless services. New instance per injection. | | Scoped | | Per-request state (EF Core…