Class DiscoveryHttpClientHandler
An
Inheritance
System.Object
DiscoveryHttpClientHandler
Namespace: Steeltoe.Common.Discovery
Assembly: Steeltoe.Common.Http.dll
Syntax
public class DiscoveryHttpClientHandler : HttpClientHandler
Constructors
| Edit this page View SourceDiscoveryHttpClientHandler(IDiscoveryClient, ILogger, ILoadBalancer)
Initializes a new instance of the DiscoveryHttpClientHandler class.
Declaration
public DiscoveryHttpClientHandler(IDiscoveryClient discoveryClient, ILogger logger = null, ILoadBalancer loadBalancer = null)
Parameters
Type | Name | Description |
---|---|---|
IDiscoveryClient | discoveryClient | Service discovery client to use - provided by calling services.AddDiscoveryClient(Configuration) |
ILogger | logger | ILogger for capturing logs from Discovery operations |
ILoadBalancer | loadBalancer | The load balancer to use |
Methods
| Edit this page View SourceSendAsync(HttpRequestMessage, CancellationToken)
Declaration
protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestMessage | request | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<HttpResponseMessage> |