Bound list/PDF payloads, stream MinIO I/O with cancellation, paginate history and FHIR $everything, tighten OCR lifetimes/buffers, and add phase tracking docs.
14 lines
932 B
C#
14 lines
932 B
C#
public interface IDocumentStorageService
|
|
{
|
|
Task<(string objectKey, string sha256, long fileSize)> UploadAsync(
|
|
Stream fileStream, string contentType, Guid batchId, CancellationToken ct = default);
|
|
Task<string> GetPresignedUrlAsync(string objectKey, CancellationToken ct = default);
|
|
Task<Stream> DownloadAsync(string objectKey, CancellationToken ct = default);
|
|
/// <summary>Returns false when the object is missing from the bucket.</summary>
|
|
Task<bool> ObjectExistsAsync(string objectKey, CancellationToken ct = default);
|
|
/// <summary>Uploads bytes only when the object key is not already present.</summary>
|
|
Task EnsureObjectAsync(string objectKey, byte[] content, string contentType, CancellationToken ct = default);
|
|
/// <summary>Ensures the configured bucket exists. Safe to call repeatedly; caches success in-process.</summary>
|
|
Task EnsureBucketAsync(CancellationToken ct = default);
|
|
}
|