Table of Contents

Interface IHonuaSource

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

Source-oriented runtime handle over one protocol-backed feature provider.

public interface IHonuaSource

Properties

Capabilities

Canonical capabilities supported by this source handle.

IReadOnlyList<string> Capabilities { get; }

Property Value

IReadOnlyList<string>

Descriptor

Serializable source descriptor.

SourceDescriptor Descriptor { get; }

Property Value

SourceDescriptor

Methods

ApplyEditsAsync(FeatureEditRequest, CancellationToken)

Applies add, update, and delete feature edits against this source.

Task<FeatureEditResponse> ApplyEditsAsync(FeatureEditRequest request, CancellationToken cancellationToken = default)

Parameters

request FeatureEditRequest

Edit request. The source descriptor supplies provider-specific source identifiers.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<FeatureEditResponse>

Provider-neutral edit response.

GetDescriptorAsync(CancellationToken)

Retrieves this source descriptor enriched with provider-neutral schema and discovered capabilities when available.

Task<SourceDescriptor> GetDescriptorAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<SourceDescriptor>

The current descriptor, or a provider-enriched descriptor when the backing client supports discovery.

Protocol(string)

Returns the native protocol client when the requested protocol matches this source.

object? Protocol(string protocolId)

Parameters

protocolId string

Canonical protocol identifier or alias.

Returns

object

The native client object, or null when unavailable.

Protocol<TClient>(string?)

Returns the typed native protocol client when the requested protocol and client type match.

TClient? Protocol<TClient>(string? protocolId = null) where TClient : class

Parameters

protocolId string

Canonical protocol identifier or alias. Defaults to this source's protocol.

Returns

TClient

The typed native client, or null when unavailable.

Type Parameters

TClient

Expected native client type.

QueryAllAsync(SourceQuery?, CancellationToken)

Drains feature query pages into one result envelope.

Task<FeatureQueryResult> QueryAllAsync(SourceQuery? query = null, CancellationToken cancellationToken = default)

Parameters

query SourceQuery

Source-oriented query request.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<FeatureQueryResult>

A provider-neutral result with all returned records.

QueryAsync(SourceQuery?, CancellationToken)

Executes a feature query and returns one page.

Task<FeatureQueryResult> QueryAsync(SourceQuery? query = null, CancellationToken cancellationToken = default)

Parameters

query SourceQuery

Source-oriented query request.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<FeatureQueryResult>

A provider-neutral result page.

QueryObjectIdsAsync(SourceQuery?, CancellationToken)

Queries feature/object identifiers for records matching a request.

Task<IReadOnlyList<string>> QueryObjectIdsAsync(SourceQuery? query = null, CancellationToken cancellationToken = default)

Parameters

query SourceQuery

Source-oriented query request.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<IReadOnlyList<string>>

Feature or object identifiers represented as strings.

QueryPagesAsync(SourceQuery?, CancellationToken)

Executes a feature query and returns provider-neutral result pages.

IAsyncEnumerable<FeatureQueryResult> QueryPagesAsync(SourceQuery? query = null, CancellationToken cancellationToken = default)

Parameters

query SourceQuery

Source-oriented query request.

cancellationToken CancellationToken

Cancellation token.

Returns

IAsyncEnumerable<FeatureQueryResult>

Provider-neutral result pages.