dependency-injection

安装量: 2.2K
排名: #7907

安装

npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill dependency-injection

Dependency Injection Core Principles Constructor injection is the default — Inject dependencies through the constructor (primary constructors make this clean). No service locator, no property injection. Match lifetimes carefully — A singleton must never depend on a scoped or transient service. This is the most common DI bug. Register interfaces, resolve interfaces — Register services.AddScoped() , not the concrete type. Keyed services for strategy pattern — .NET 8+ keyed services replace manual factory patterns for selecting between implementations. Patterns Keyed Services (.NET 8+) Use keyed services to register and resolve multiple implementations of the same interface. Show more Installs 1.1K Repository codewithmukesh/…aude-kit GitHub Stars 703 First Seen Mar 13, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Warn

← 返回排行榜