Skip to content

INamedHttpClientOptions

NexusLabs.Needlr.Generators

INamedHttpClientOptions Interface

Marker interface for types decorated with HttpClientOptionsAttribute. Every [HttpClientOptions] target must implement this interface; the NDLRHTTP001 analyzer diagnostic enforces it at compile time.

public interface INamedHttpClientOptions

Derived
IStandardHttpClientOptions

Remarks

The interface is intentionally empty. The actual configurability of a named HttpClient is composed from additional capability interfaces (IHttpClient*), which the source generator detects independently and emits wiring for only when implemented.

Keeping the client name OFF this interface is deliberate — the name is resolved by the generator from one of three sources (attribute argument, ClientName property on the type, or inferred from the type name), and forcing every consumer to declare it in the same place would make the inference and attribute-override paths impossible.