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
ProviderName
Provider name for diagnostics and provider selection.
string ProviderName { get; }
Property Value
Methods
AddAttachmentAsync(FeatureAttachmentAddRequest, CancellationToken)
Adds an attachment to one feature.
Task<FeatureAttachmentResult> AddAttachmentAsync(FeatureAttachmentAddRequest request, CancellationToken cancellationToken = default)
Parameters
requestFeatureAttachmentAddRequestProvider-neutral attachment add request.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<FeatureAttachmentResult>
Attachment operation result.
DeleteAttachmentAsync(FeatureAttachmentDeleteRequest, CancellationToken)
Deletes one attachment.
Task<FeatureAttachmentResult> DeleteAttachmentAsync(FeatureAttachmentDeleteRequest request, CancellationToken cancellationToken = default)
Parameters
requestFeatureAttachmentDeleteRequestProvider-neutral attachment delete request.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<FeatureAttachmentResult>
Attachment operation result.
DownloadAttachmentAsync(FeatureAttachmentDownloadRequest, CancellationToken)
Downloads one attachment.
Task<FeatureAttachmentContent> DownloadAttachmentAsync(FeatureAttachmentDownloadRequest request, CancellationToken cancellationToken = default)
Parameters
requestFeatureAttachmentDownloadRequestProvider-neutral attachment download request.
cancellationTokenCancellationTokenCancellation 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
requestFeatureAttachmentListRequestProvider-neutral attachment list request.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IReadOnlyList<FeatureAttachmentInfo>>
Attachment metadata.
UpdateAttachmentAsync(FeatureAttachmentUpdateRequest, CancellationToken)
Updates one attachment.
Task<FeatureAttachmentResult> UpdateAttachmentAsync(FeatureAttachmentUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
requestFeatureAttachmentUpdateRequestProvider-neutral attachment update request.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<FeatureAttachmentResult>
Attachment operation result.