LogoClawIndex
CasesSkillsAbout
LogoClawIndex

dotnet-csharp-dependency-injection - .NET Dependency Injection Patterns

Register and resolve services with Microsoft DI

Tags

Updated: 2026-06-30
dependency injection.NETC#IoC containerservice registrationMicrosoft.Extensions

Capabilities

register transient serviceregister scoped serviceregister singleton serviceresolve service instance

Typical Inputs

service typeimplementation typeservice lifetime

Typical Outputs

service instancevalidation resultextension method

What this skill does

  • register transient service
  • register scoped service
  • register singleton service
  • resolve service instance
  • add keyed service
  • decorate service
  • register hosted service
  • create service scope
  • validate service scope
  • add factory delegate
  • add multiple implementations

Inputs

  • service type
  • implementation type
  • service lifetime
  • service key
  • factory delegate
  • service collection

Outputs

  • service instance
  • validation result
  • extension method

Requirements

  • .NET environment
  • Microsoft.Extensions.DependencyInjection
  • net8.0+ for keyed services

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.