Interface IHonuaGrpcClient
Client interface for the Honua gRPC FeatureService.
The concrete HonuaGrpcClient implementation owns an underlying
GrpcChannel and is IDisposable, so the channel is
released when the DI container shuts down. The interface itself intentionally
does not extend IDisposable: surfacing disposal on the
public contract leaks transport ownership into a type that downstream callers
may resolve and would invite consumers to dispose a DI-managed singleton,
tearing down the channel for every other dependent in the container.
Consumers depending on this interface should let DI manage the lifetime and must not manually dispose the resolved instance. Code that genuinely needs to own disposal (for example, manual construction in tests) should depend on the concrete HonuaGrpcClient type, which remains IDisposable.
public interface IHonuaGrpcClient
Methods
ApplyEditsAsync(ApplyEditsRequest, CancellationToken)
Applies add, update, and delete edits to a feature layer.
Task<ApplyEditsResponse> ApplyEditsAsync(ApplyEditsRequest request, CancellationToken cancellationToken = default)
Parameters
requestApplyEditsRequestThe edit request containing adds, updates, and deletes.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ApplyEditsResponse>
The edit response containing per-operation results.
QueryFeaturesAsync(QueryFeaturesRequest, CancellationToken)
Executes a feature query and returns all results in a single response.
Task<QueryFeaturesResponse> QueryFeaturesAsync(QueryFeaturesRequest request, CancellationToken cancellationToken = default)
Parameters
requestQueryFeaturesRequestThe query request parameters.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<QueryFeaturesResponse>
The query response containing features, counts, or extent.
QueryFeaturesStreamAsync(QueryFeaturesRequest, CancellationToken)
Executes a feature query and streams results as pages.
IAsyncEnumerable<FeaturePage> QueryFeaturesStreamAsync(QueryFeaturesRequest request, CancellationToken cancellationToken = default)
Parameters
requestQueryFeaturesRequestThe query request parameters.
cancellationTokenCancellationTokenCancellation token.
Returns
- IAsyncEnumerable<FeaturePage>
An async enumerable of feature pages.