MP0025
Creates HttpClient inside a module; use context.Network.Http for pipeline resilience, logging, and HTTP interception.
| Property | Value |
|---|---|
| Category | Usage |
| Default severity | Warning |
| Availability | Public analyzer package |
Configure severity
.editorconfig
dotnet_diagnostic.MP0025.severity = warning
Use none to disable the rule, or silent, suggestion, warning, or error to change its severity.
Suppress a specific occurrence
#pragma warning disable MP0025
// Code that intentionally violates MP0025.
#pragma warning restore MP0025