Documentation for HttpClient.Resilience.Analyzers, the .NET Roslyn analyzer package for HttpClient, IHttpClientFactory, typed clients, Polly, and outbound HTTP resilience.
| Page | What it covers |
|---|---|
| Rules index | All analyzer rules by category, default profile severity, fix support, and rollout priority. |
| Configuration | .editorconfig severity settings and included profile guidance. |
| Adoption | Practical rollout steps for brownfield and new .NET services. |
| False-positive policy | The diagnostic quality bar and how to report noisy analyzer behavior. |
| Implementation status | Current analyzer and code-fix coverage for every rule ID. |
| Releasing | Maintainer workflow for package validation and NuGet publishing. |
Each rule page includes the production risk, bad and better C# examples, detection scope, code-fix notes, suppression guidance, and references.
- Lifetime rules:
HCR001,HCR002,HCR003 - Typed-client and named-client rules:
HCR004,HCR005,HCR083,HCR084 - Handler rules:
HCR020 - Resilience rules:
HCR040,HCR041,HCR082 - Response lifetime and request correctness rules:
HCR060,HCR061,HCR062,HCR063,HCR064,HCR081 - Concurrency rules:
HCR080