Table of Contents

Class HonuaOgcRecordsClient

Namespace
Honua.Sdk.Catalogs.Records
Assembly
Honua.Sdk.Catalogs.dll

HTTP client implementation for the Honua OGC API Records public catalog API.

public sealed class HonuaOgcRecordsClient : IHonuaOgcRecordsClient
Inheritance
HonuaOgcRecordsClient
Implements
Inherited Members

Constructors

HonuaOgcRecordsClient(HttpClient)

Initializes a new instance of the HonuaOgcRecordsClient class.

public HonuaOgcRecordsClient(HttpClient httpClient)

Parameters

httpClient HttpClient

The HTTP client configured with base address and auth handlers.

Methods

GetCollectionAsync(string, CancellationToken)

Gets one record collection by identifier.

public Task<OgcRecordsCollection> GetCollectionAsync(string collectionId, CancellationToken cancellationToken = default)

Parameters

collectionId string

Record collection identifier.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<OgcRecordsCollection>

The collection metadata.

GetConformanceAsync(CancellationToken)

Gets the conformance declaration listing supported Records standards.

public Task<OgcRecordsConformance> GetConformanceAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<OgcRecordsConformance>

The conformance response.

GetLandingPageAsync(CancellationToken)

Gets the Records landing page with service metadata and navigation links.

public Task<OgcRecordsLandingPage> GetLandingPageAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<OgcRecordsLandingPage>

The landing page response.

GetRecordAsync(string, string, CancellationToken)

Gets one metadata record by identifier.

public Task<OgcRecord> GetRecordAsync(string collectionId, string recordId, CancellationToken cancellationToken = default)

Parameters

collectionId string

Record collection identifier.

recordId string

Record identifier.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<OgcRecord>

The metadata record.

GetRecordJsonAsync(string, string, CancellationToken)

Gets one metadata record as raw JSON for contract fields not yet promoted to typed SDK properties.

public Task<JsonDocument> GetRecordJsonAsync(string collectionId, string recordId, CancellationToken cancellationToken = default)

Parameters

collectionId string

Record collection identifier.

recordId string

Record identifier.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<JsonDocument>

A caller-owned JSON document.

GetRecordsAsync(string, OgcRecordsQuery?, CancellationToken)

Gets one page of metadata records from a collection.

public Task<OgcRecordCollection> GetRecordsAsync(string collectionId, OgcRecordsQuery? query = null, CancellationToken cancellationToken = default)

Parameters

collectionId string

Record collection identifier.

query OgcRecordsQuery

Optional query parameters for paging and filtering.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<OgcRecordCollection>

A GeoJSON-compatible record collection.

GetRecordsJsonAsync(string, OgcRecordsQuery?, CancellationToken)

Gets one page of metadata records as raw JSON for contract fields not yet promoted to typed SDK properties.

public Task<JsonDocument> GetRecordsJsonAsync(string collectionId, OgcRecordsQuery? query = null, CancellationToken cancellationToken = default)

Parameters

collectionId string

Record collection identifier.

query OgcRecordsQuery

Optional query parameters for paging and filtering.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<JsonDocument>

A caller-owned JSON document.

GetRecordsPagesAsync(string, OgcRecordsQuery?, CancellationToken)

Gets records with automatic next-link pagination.

public IAsyncEnumerable<OgcRecordCollection> GetRecordsPagesAsync(string collectionId, OgcRecordsQuery? query = null, CancellationToken cancellationToken = default)

Parameters

collectionId string

Record collection identifier.

query OgcRecordsQuery

Optional query parameters for filtering.

cancellationToken CancellationToken

Cancellation token.

Returns

IAsyncEnumerable<OgcRecordCollection>

Record collection pages.

GetRecordsRawAsync(string, OgcRecordsQuery?, CancellationToken)

Gets the raw HTTP response for a records query. The caller is responsible for disposing the response.

public Task<HttpResponseMessage> GetRecordsRawAsync(string collectionId, OgcRecordsQuery? query = null, CancellationToken cancellationToken = default)

Parameters

collectionId string

Record collection identifier.

query OgcRecordsQuery

Optional query parameters for paging and filtering.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<HttpResponseMessage>

The raw HTTP response.

ListCollectionsAsync(CancellationToken)

Lists available record collections.

public Task<IReadOnlyList<OgcRecordsCollection>> ListCollectionsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<IReadOnlyList<OgcRecordsCollection>>

Record collections exposed by the server.

SearchAsync(string, OgcRecordsQuery?, CancellationToken)

Searches metadata records from a collection. This is an alias for GetRecordsAsync(string, OgcRecordsQuery?, CancellationToken) using Records search terminology.

public Task<OgcRecordCollection> SearchAsync(string collectionId, OgcRecordsQuery? query = null, CancellationToken cancellationToken = default)

Parameters

collectionId string

Record collection identifier.

query OgcRecordsQuery

Optional query parameters for paging and filtering.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<OgcRecordCollection>

A GeoJSON-compatible record collection.