ResQ.Clients
BaseServiceClient Class
Abstract base class for ResQ service clients. Provides common HTTP client setup with resilience patterns (retry, circuit breaker, timeout).↳ CoordinationHceClient
↳ InfrastructureApiClient Implements System.IDisposable
| Properties | |
|---|---|
| AuthorizationHeader | Gets or sets the authorization header for the current async flow. |
| ServiceName | Service name for logging purposes (e.g., “Infrastructure API”, “Coordination HCE”). |
| Methods | |
|---|---|
| BuildResiliencePipeline(bool) | Builds the resilience pipeline with circuit breaker, timeout, and optional retries. |
| Dispose() | Disposes the HTTP client. |
| ExecuteWithResilienceAsync(HttpMethod, Func<CancellationToken,Task<HttpResponseMessage>>, CancellationToken) | Executes an HTTP request with a resilience policy appropriate for the HTTP method. |
| SendAsync(HttpMethod, string, HttpContent, CancellationToken, bool) | Sends an HTTP request, applying authorization from the current async flow when present. |