Table of Contents

Interface IHonuaFeatureAttachmentClient

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

Shared feature attachment contract implemented by attachment-capable Honua clients.

public interface IHonuaFeatureAttachmentClient

Properties

AttachmentCapabilities

Provider attachment capabilities exposed by this client.

FeatureAttachmentCapabilities AttachmentCapabilities { get; }

Property Value

FeatureAttachmentCapabilities

ProviderName

Provider name for diagnostics and provider selection.

string ProviderName { get; }

Property Value

string

Methods

AddAttachmentAsync(FeatureAttachmentAddRequest, CancellationToken)

Adds an attachment to one feature.

Task<FeatureAttachmentResult> AddAttachmentAsync(FeatureAttachmentAddRequest request, CancellationToken cancellationToken = default)

Parameters

request FeatureAttachmentAddRequest

Provider-neutral attachment add request.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<FeatureAttachmentResult>

Attachment operation result.

DeleteAttachmentAsync(FeatureAttachmentDeleteRequest, CancellationToken)

Deletes one attachment.

Task<FeatureAttachmentResult> DeleteAttachmentAsync(FeatureAttachmentDeleteRequest request, CancellationToken cancellationToken = default)

Parameters

request FeatureAttachmentDeleteRequest

Provider-neutral attachment delete request.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<FeatureAttachmentResult>

Attachment operation result.

DownloadAttachmentAsync(FeatureAttachmentDownloadRequest, CancellationToken)

Downloads one attachment.

Task<FeatureAttachmentContent> DownloadAttachmentAsync(FeatureAttachmentDownloadRequest request, CancellationToken cancellationToken = default)

Parameters

request FeatureAttachmentDownloadRequest

Provider-neutral attachment download request.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<FeatureAttachmentContent>

Downloaded attachment content. Dispose the returned content stream when finished.

ListAttachmentsAsync(FeatureAttachmentListRequest, CancellationToken)

Lists attachments for one feature.

Task<IReadOnlyList<FeatureAttachmentInfo>> ListAttachmentsAsync(FeatureAttachmentListRequest request, CancellationToken cancellationToken = default)

Parameters

request FeatureAttachmentListRequest

Provider-neutral attachment list request.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<IReadOnlyList<FeatureAttachmentInfo>>

Attachment metadata.

UpdateAttachmentAsync(FeatureAttachmentUpdateRequest, CancellationToken)

Updates one attachment.

Task<FeatureAttachmentResult> UpdateAttachmentAsync(FeatureAttachmentUpdateRequest request, CancellationToken cancellationToken = default)

Parameters

request FeatureAttachmentUpdateRequest

Provider-neutral attachment update request.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<FeatureAttachmentResult>

Attachment operation result.