Skip to main content

ResQ.Clients

BaseServiceClient Class

Abstract base class for ResQ service clients. Provides common HTTP client setup with resilience patterns (retry, circuit breaker, timeout).
public abstract class BaseServiceClient : System.IDisposable
Inheritance System.Object → BaseServiceClient Derived
CoordinationHceClient
InfrastructureApiClient
Implements System.IDisposable
Properties
AuthorizationHeaderGets or sets the authorization header for the current async flow.
ServiceNameService 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.