SkillAgentSearch skills...

DependencyInjection.Analyzer

Display all the Dependency Injection services in Mvc or Api project, developers can view all of the services through the browser, include Lifetime(Singleton, Transient, Scoped), ServiceType(IHttpContextFactory, ILoggerFactory...) and ImplementationType(HttpContextFactory, LoggerFactory...) and other User-defined services

Install / Use

/learn @188867052/DependencyInjection.Analyzer
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

| Package | NuGet Stable | Downloads | | ------- | ------------ | --------- | | DependencyInjection.Analyzer | DependencyInjection.Analyzer | DependencyInjection.Analyzer |

Install NuGet package

PM> Install-Package DependencyInjection.Analyzer

Edit Startup.cs

Insert code services.AddDependencyInjectionAnalyzer(); and required using directive into Startup.cs as follows.

using DependencyInjection.Analyzer; // Add
....
public void ConfigureServices(IServiceCollection services)
{
    services.AddMvc();
    services.AddDependencyInjectionAnalyzer(); // Add
}
....

View Services via Browser

Eg. input https://localhost:44336/services

screenshot

Technologies

Other containers with Microsoft.Extensions.DependencyInjection

My projects

View on GitHub
GitHub Stars14
CategoryDevelopment
Updated3y ago
Forks0

Languages

C#

Security Score

60/100

Audited on Dec 13, 2022

No findings