METHOD
IHttpClientBuilder.AddServiceDiscovery
Attach service discovery support to a factory-managed HTTP client.
Formal Syntax & Structure
csharp syntaxcsharp
builder.Services.AddHttpClient("inventory").AddServiceDiscovery()Working Example
Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.builder.Services.AddHttpClient("inventory").AddServiceDiscovery()