Table of Contents

Interface IHonuaGrpcClient

Namespace
Honua.Sdk.Grpc
Assembly
Honua.Sdk.Grpc.dll

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

request ApplyEditsRequest

The edit request containing adds, updates, and deletes.

cancellationToken CancellationToken

Cancellation 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

request QueryFeaturesRequest

The query request parameters.

cancellationToken CancellationToken

Cancellation 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

request QueryFeaturesRequest

The query request parameters.

cancellationToken CancellationToken

Cancellation token.

Returns

IAsyncEnumerable<FeaturePage>

An async enumerable of feature pages.