roslyn:get_di_registrations
Scan .NET projects to identify dependency injection service registrations, including lifetimes, types, and locations. Use to understand service wiring, find missing registrations, and audit dependency injection configurations.
Instructions
Scan for dependency injection service registrations (AddScoped, AddTransient, AddSingleton, etc.).
USAGE: get_di_registrations() USAGE: get_di_registrations(projectName: "MyApi")
OUTPUT: List of DI registrations with lifetime, service type, implementation type, and location. Use for: understanding service wiring, finding missing registrations, auditing lifetimes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectName | No | Filter to specific project |