Table of Contents

Class HonuaClientOptionsBase

Namespace
Honua.Sdk.Abstractions
Assembly
Honua.Sdk.Abstractions.dll

Shared base for Honua SDK client options classes. Centralizes the common transport configuration surface — BaseAddress, Timeout, EnableRetry, MaxRetryAttempts and PrimaryHttpMessageHandlerFactory — together with its defaults and the MaxRetryAttempts range check, so the protocol packages no longer re-declare this surface in lockstep. Shared base-address and timeout validation lives in Honua.Sdk.Abstractions.HonuaClientOptionsValidation.

public abstract class HonuaClientOptionsBase : IHonuaClientOptions
Inheritance
HonuaClientOptionsBase
Implements
Derived
Inherited Members

Properties

BaseAddress

Base address of the Honua server. Required; the SDK does not assume a localhost default so that missing configuration surfaces loudly at registration time via the owning package's ValidateBaseAddress check.

public Uri? BaseAddress { get; set; }

Property Value

Uri

EnableRetry

Whether to enable automatic retry on transient failures (default: true).

public bool EnableRetry { get; set; }

Property Value

bool

MaxRetryAttempts

Maximum number of total sends, including the original call (default: 3). Must be in the inclusive range [2, 5]; the setter throws ArgumentOutOfRangeException for values outside that range. Only applies when EnableRetry is true.

public int MaxRetryAttempts { get; set; }

Property Value

int

PrimaryHttpMessageHandlerFactory

Optional primary HTTP message handler factory for certificate, mTLS, or enterprise transport configuration.

public Func<HttpMessageHandler>? PrimaryHttpMessageHandlerFactory { get; set; }

Property Value

Func<HttpMessageHandler>

Timeout

Overall timeout for each request, including retry attempts (default: 100 seconds). Must be greater than 10 milliseconds and less than 24 hours. When retry is enabled, each attempt is limited to about 45% of this value (45 seconds by default). That per-attempt limit covers response headers and the full response body, including streaming reads.

public TimeSpan Timeout { get; set; }

Property Value

TimeSpan