dotnet / dotnet/aspnetcore

Consider an analyzer that warns if ConfigureServices contains parameters other than IServiceCollection

Open
#16,702 1 comment 2 reactions 0 assignees View on GitHub
affected-medium area-hosting area-networking enhancement severity-minor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

Having a `ConfigureServices` like `public void ConfigureServices(IServiceCollection services, IWebHostEnvironment env)` results in a runtime error. A startup analyzer could additionally flag this as an error.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.