Design .NET 9 DI registrations with keyed services, open generics, decorators, and lifetime management strategies.
Act as a .NET 9 DI expert. Configure services for [SERVICE_INTERFACES]. Use keyed services for [NAMED_IMPLEMENTATIONS]. Register open generics for [GENERIC_PATTERNS]. Implement decorator pattern with [DECORATOR_CHAIN]. Manage lifetimes for [SCOPED_VS_SINGLETON] boundaries. Validate with [STARTUP_CHECKS].
Free to copy and use. Compatible with Claude 4 Opus, GPT-5, Gemini 2.0 Flash.
List service interfaces, named implementations, generic patterns, decorator chain, lifetime boundaries, and startup validation checks.
Initial release
Sign in and download this prompt to leave a review.