11 lines
519 B
C#
11 lines
519 B
C#
namespace mws.backend.dotnet.application.Documents;
|
|
|
|
public interface IDocumentContentStore
|
|
{
|
|
Task EnsureBucketAsync(Guid projectId, CancellationToken ct);
|
|
Task UploadAsync(Guid projectId, Guid documentId, string contentType, Stream body, CancellationToken ct);
|
|
Task<Stream> DownloadAsync(Guid projectId, Guid documentId, CancellationToken ct);
|
|
Task<bool> ExistsAsync(Guid projectId, Guid documentId, CancellationToken ct);
|
|
Task DeleteAsync(Guid projectId, Guid documentId, CancellationToken ct);
|
|
}
|