/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

Primary LanguageC#

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