Table of Contents

Class HonuaSdkOptions

Namespace
Honua.Sdk
Assembly
Honua.Sdk.dll

Aggregate configuration for the Honua.Sdk umbrella / meta package. AddHonua(IServiceCollection, Action<HonuaSdkOptions>) captures a single instance of this type and fans the shared cross-cutting values (base address, auth, retry / timeout, primary HTTP handler) out into every enabled sub-package's own AddHonua* registration.

public sealed class HonuaSdkOptions
Inheritance
HonuaSdkOptions
Inherited Members

Remarks

This is the only options class the umbrella exposes. It does not replace any per-package options class (HonuaGrpcClientOptions, HonuaAdminClientOptions, etc.) — the umbrella translates this snapshot into each sub-package's Action<TOptions> delegate at registration time. Callers who need protocol-specific knobs (gRPC compression negotiation, OGC vector format defaults, etc.) should keep using the per-package AddHonua* extension directly.

Module opt-in flags (UseGrpc, UseAdmin, UseGeocoding, UseOgcFeatures, UseOgcTiles, UseProcesses, and UseWfs) default to true for the common query, edit, admin, geocoding, OGC API Features, OGC API Tiles, OGC API Processes, and WFS client set. The more situational sub-packages (UseGeoServices, UseRouting, UseImageServer, UseScenes, UseSpec, UseStac, UseOgcRecords) default to false so callers who want the smallest registration footprint don't get every client they don't use.

Properties

AccessTokenProvider

Request-aware access token provider. Takes precedence over BearerToken and BearerTokenProvider.

public IHonuaAccessTokenProvider? AccessTokenProvider { get; set; }

Property Value

IHonuaAccessTokenProvider

ApiKey

API key forwarded to every enabled client. Sub-packages send it as an API key header (REST) or as gRPC metadata.

public string? ApiKey { get; set; }

Property Value

string

ApiKeyProvider

API key provider invoked before each request. Takes precedence over ApiKey. Returning null or an empty string omits the API key.

public Func<CancellationToken, Task<string?>>? ApiKeyProvider { get; set; }

Property Value

Func<CancellationToken, Task<string>>

AuthenticationAudience

Default OAuth / OIDC audience or resource requested by every enabled client.

public string? AuthenticationAudience { get; set; }

Property Value

string

AuthenticationDiagnostics

Optional sanitized authentication diagnostics callback. Raw credential values are never supplied to this callback. Forwarded to every enabled client.

public HonuaAuthenticationDiagnosticHandler? AuthenticationDiagnostics { get; set; }

Property Value

HonuaAuthenticationDiagnosticHandler

AuthenticationScopes

Default OAuth / OIDC scopes requested by every enabled client.

public IReadOnlyList<string> AuthenticationScopes { get; set; }

Property Value

IReadOnlyList<string>

BaseAddress

Base address of the Honua server, applied to every enabled sub-package's client options. Required: the SDK does not bake in a localhost default, so leaving this null causes the first enabled sub-package to fail validation at registration time.

public Uri? BaseAddress { get; set; }

Property Value

Uri

BearerToken

Bearer token forwarded to every enabled client.

public string? BearerToken { get; set; }

Property Value

string

BearerTokenProvider

Bearer token provider invoked before each request. Takes precedence over BearerToken.

public Func<CancellationToken, Task<string?>>? BearerTokenProvider { get; set; }

Property Value

Func<CancellationToken, Task<string>>

EnableRetry

Whether to enable the default transient-failure retry policy on every enabled client. Defaults to true.

public bool EnableRetry { get; set; }

Property Value

bool

MaxRetryAttempts

Maximum number of retry attempts (including the original call) applied to every enabled client. Must be in the inclusive range [2, 5]; the setter throws ArgumentOutOfRangeException for values outside that range. Only applied when EnableRetry is true. Defaults to 3.

public int MaxRetryAttempts { get; set; }

Property Value

int

PrimaryHttpMessageHandlerFactory

Optional primary HTTP message handler factory for certificate, mTLS, proxy, or enterprise transport configuration. Forwarded to every enabled client.

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

Property Value

Func<HttpMessageHandler>

Timeout

Overall request budget per call, including retry attempts. Defaults to 100 seconds. Sub-package options classes additionally enforce 10 ms < Timeout < 24 h at registration time.

public TimeSpan Timeout { get; set; }

Property Value

TimeSpan

UseAdmin

When true, registers the Admin REST client (IHonuaAdminClient) and its included IHonuaCatalogClient catalog-discovery view. Defaults to true.

public bool UseAdmin { get; set; }

Property Value

bool

UseConsoleShare

When true, registers the Console Share access, public-link, and embed-token client (IHonuaConsoleShareClient). Defaults to false.

public bool UseConsoleShare { get; set; }

Property Value

bool

UseCoverages

Registers the OGC API Coverages client (IHonuaOgcCoveragesClient) and IHonuaRasterDataClient. Defaults to false.

public bool UseCoverages { get; set; }

Property Value

bool

UseGeoServices

When true, registers the GeoServices FeatureServer client (IHonuaFeatureServerClient). Defaults to false.

public bool UseGeoServices { get; set; }

Property Value

bool

UseGeocoding

When true, registers the Geocoding client (IHonuaGeocodingClient / IHonuaBatchGeocodingClient). Ships in the Admin package and reuses the Admin options / auth handler. Defaults to true.

public bool UseGeocoding { get; set; }

Property Value

bool

UseGeoprocessingProfile

When true, registers the geoprocessing (GP) feature profile: the unified IHonuaFeatureGateway plus the providers it needs so a GP tool can read/write feature attachments and run temporal / grouped-statistics queries regardless of the feature transport.

public bool UseGeoprocessingProfile { get; set; }

Property Value

bool

Remarks

The workhorse gRPC FeatureService exposes no attachment RPCs and no provider-neutral time-filter or having contract, so a GP tool that reads features over gRPC would otherwise hit NotSupportedException on media-bearing or temporal/statistical operations. Enabling this profile forces UseGeoServices on (the GeoServices FeatureServer client backs attachments and time/having queries) and registers IHonuaFeatureGateway, which routes each operation to a capable provider.

Defaults to false. Setting it to true does not disable any other module; it only adds the GeoServices provider and the gateway.

UseGrpc

When true, registers the gRPC FeatureService client (IHonuaGrpcClient), the native ProcessService job lifecycle client (IHonuaProcessGrpcClient), and the shared feature query / edit / attachment interface aliases. Defaults to true.

public bool UseGrpc { get; set; }

Property Value

bool

UseImageServer

When true, registers the GeoServices ImageServer raster client (HonuaImageServerClient) and the provider-neutral raster data client (IHonuaRasterDataClient) for raster metadata, coverage statistics, and windowed reads. Ships in the GeoServices package and reuses its options / auth handler. Defaults to false.

public bool UseImageServer { get; set; }

Property Value

bool

UseOgcFeatures

When true, registers the OGC API Features client (IHonuaOgcFeaturesClient). Defaults to true.

public bool UseOgcFeatures { get; set; }

Property Value

bool

UseOgcRecords

When true, registers the OGC API Records catalog client (IHonuaOgcRecordsClient). Defaults to false.

public bool UseOgcRecords { get; set; }

Property Value

bool

UseOgcTiles

When true, registers the OGC API Tiles client (IHonuaOgcTilesClient). Independent of UseOgcFeatures: the tiles client shares the OGC features options and auth handler, and AddHonua registers it on its own when this flag is set. Defaults to true.

public bool UseOgcTiles { get; set; }

Property Value

bool

UseProcesses

When true, registers the OGC API Processes REST client (IHonuaProcessesClient). Defaults to true.

public bool UseProcesses { get; set; }

Property Value

bool

UseRouting

When true, registers the GeoServices NAServer Routing client (IHonuaRoutingClient). Ships in the GeoServices package and reuses its options / auth handler. Defaults to false.

public bool UseRouting { get; set; }

Property Value

bool

UseScenes

When true, registers the scene metadata client (IHonuaSceneClient). Defaults to false.

public bool UseScenes { get; set; }

Property Value

bool

UseSpec

When true, registers the Spec workspace validate / plan / apply client (IHonuaSpecClient). Defaults to false.

public bool UseSpec { get; set; }

Property Value

bool

UseStac

When true, registers the STAC catalog client (IHonuaStacClient). Defaults to false.

public bool UseStac { get; set; }

Property Value

bool

UseStudio

When true, registers the Console Studio analysis-report read client (IHonuaStudioReportsClient). Defaults to false.

public bool UseStudio { get; set; }

Property Value

bool

UseWcs

Registers the OGC WCS 2.0 client (IHonuaWcsClient) and IHonuaRasterDataClient. Defaults to false.

public bool UseWcs { get; set; }

Property Value

bool

UseWfs

When true, registers the WFS 2.0 client (IHonuaWfsClient). The WFS surface ships inside the Honua.Sdk.OgcFeatures package after the recent consolidation. Defaults to true.

public bool UseWfs { get; set; }

Property Value

bool