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
Descriptor
Serializable source descriptor.
SourceDescriptor Descriptor { get; }
Property Value
Methods
ApplyEditsAsync(FeatureEditRequest, CancellationToken)
Applies add, update, and delete feature edits against this source.
Task<FeatureEditResponse> ApplyEditsAsync(FeatureEditRequest request, CancellationToken cancellationToken = default)
Parameters
requestFeatureEditRequestEdit request. The source descriptor supplies provider-specific source identifiers.
cancellationTokenCancellationTokenCancellation 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
cancellationTokenCancellationTokenCancellation 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
protocolIdstringCanonical protocol identifier or alias.
Returns
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
protocolIdstringCanonical protocol identifier or alias. Defaults to this source's protocol.
Returns
- TClient
The typed native client, or null when unavailable.
Type Parameters
TClientExpected native client type.
QueryAllAsync(SourceQuery?, CancellationToken)
Drains feature query pages into one result envelope.
Task<FeatureQueryResult> QueryAllAsync(SourceQuery? query = null, CancellationToken cancellationToken = default)
Parameters
querySourceQuerySource-oriented query request.
cancellationTokenCancellationTokenCancellation 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
querySourceQuerySource-oriented query request.
cancellationTokenCancellationTokenCancellation 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
querySourceQuerySource-oriented query request.
cancellationTokenCancellationTokenCancellation 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
querySourceQuerySource-oriented query request.
cancellationTokenCancellationTokenCancellation token.
Returns
- IAsyncEnumerable<FeatureQueryResult>
Provider-neutral result pages.