ABP Dependency Injection Skill

Community

Wire ABP services correctly with DI

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, or IScopedDependency.
  • Explicit control: Uses [Dependency] to set Lifetime, TryRegister, and ReplaceServices for 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.