ABP Dependency Injection Skill
CommunityWire ABP services correctly with DI
Software Engineering#dependency injection#abp#service registration#autofac#service lifetime#expose services#framework override
Authorburakdmir
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It solves the confusion of how ABP Framework registers and resolves dependencies, so your services get the right lifetimes and interfaces without brittle manual wiring.
Core Features & Use Cases
- Conventional DI registration: Automatically registers services by implementing
ITransientDependency,ISingletonDependency, orIScopedDependency. - Explicit control: Uses
[Dependency]to setLifetime,TryRegister, andReplaceServicesfor safe overrides. - Interface exposure control: Uses
[ExposeServices]to control which interfaces are injectable. - ABP DI container requirements: Covers when and why Autofac is needed for dynamic proxying (UoW, validation, authorization, auditing, feature checking).
- Practical scenarios: Override a framework service, choose correct lifetimes for caches/request state, and avoid the service locator pattern.
Quick Start
Ask the skill how to register or override an ABP service so it can be injected with the correct interface and lifetime.
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: ABP Dependency Injection Skill Download link: https://github.com/burakdmir/abp-skills/archive/main.zip#abp-dependency-injection-skill 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 471,000+ vetted skills library on demand.