unity-di
CommunityStreamline Unity DI usage in .NET apps.
Software Engineering#csharp#unity#dependency-injection#webapi#aspnet-mvc#di-container#lifetime-management
AuthorFerranGuardia
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Unity DI for .NET Framework apps often lacks clear guidance on container setup, lifetime management, and ASP.NET integration. This Skill consolidates common patterns (constructor and property injection, per-request scopes, named registrations) into a reusable recipe that reduces boilerplate and prevents misconfigurations.
Core Features & Use Cases
- Container setup and registration patterns that map interfaces to implementations with configurable lifetimes.
- ASP.NET MVC 5 and Web API 2 integration with per-request scoping via hierarchical lifetime management.
- Injection patterns including constructor and property injection, with support for named registrations and resolution.
- Registration by convention and common pitfalls guidance to prevent misuse and ensure testability.
Quick Start
Configure Unity DI in your ASP.NET project by registering types and lifetimes, then resolve services in controllers.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: unity-di Download link: https://github.com/FerranGuardia/claude-autonomous-setup/archive/main.zip#unity-di 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 223,000+ vetted skills library on demand.