HttpClientOptionsAnalyzer
NexusLabs.Needlr.Generators¶
NexusLabs.Needlr.Generators¶
HttpClientOptionsAnalyzer Class¶
Analyzer for [HttpClientOptions] usage. Enforces the contracts the generator
relies on and reports six diagnostics:
- NDLRHTTP001 — target must implement INamedHttpClientOptions
- NDLRHTTP002 — attribute Name and ClientName property disagree
- NDLRHTTP003 — ClientName property body is not a literal expression
- NDLRHTTP004 — resolved name is empty
- NDLRHTTP005 — duplicate client name across types in the compilation
- NDLRHTTP006 — ClientName property has the wrong shape
Inheritance Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer 🡒 HttpClientOptionsAnalyzer