dotnet-csharp-dependency-injection

Community

Master .NET DI patterns.

AuthorAGIBuild
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill simplifies the complex task of managing service lifetimes, registrations, and resolutions within .NET applications, ensuring robust and maintainable code.

Core Features & Use Cases

  • Advanced DI Patterns: Explores keyed services, decoration, factory delegates, and scope validation.
  • Background Services: Demonstrates proper registration and usage of BackgroundService and IHostedService.
  • Use Case: Efficiently manage the lifecycle of DbContext instances in a web application, ensuring each request has its own isolated data context, while singletons like caching services are shared across all requests.

Quick Start

Register a scoped service named 'IOrderRepository' with a concrete implementation of 'SqlOrderRepository' using the provided extension method.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: dotnet-csharp-dependency-injection
Download link: https://github.com/AGIBuild/Agibuild.Fulora/archive/main.zip#dotnet-csharp-dependency-injection

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 223,000+ vetted skills library on demand.