di-patterns
CommunityOptimize .NET Dependency Injection with Best Practices
Software Engineering#dependency injection#.NET#Options pattern#keyed services#DI patterns#HttpClientFactory
Authordimsour
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses common issues in .NET's Dependency Injection (DI) by providing guidance and best practices for implementing DI patterns.
Core Features & Use Cases
- Dependency Injection Patterns: Offers explanations and examples of various DI patterns such as Singleton, Scoped, and Transient lifetimes.
- HttpClientFactory: Guidance on using HttpClientFactory for HTTP requests.
- Options Pattern: Detailed explanation of the Options pattern for configuration management.
- Keyed Services: Information on using keyed services in .NET 8 and above.
- Factories: Examples of implementing factories in .NET for creating services based on different criteria.
- Multi-Registration: Techniques for registering multiple services with the same interface.
- Use Case: Helps developers implement DI patterns correctly in their .NET applications, improving maintainability and scalability.
Quick Start
Review the recommended DI patterns for your .NET application in the 'di-patterns' skill.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: di-patterns Download link: https://github.com/dimsour/dotnet-ai-toolkit/archive/main.zip#di-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.