Core.Blueprint.DAL/Core.Blueprint.DAL.Storage/Contracts/IBlobStorageService.cs
2025-06-09 00:40:43 -06:00

17 lines
602 B
C#

using Azure;
using Azure.Storage.Blobs.Models;
using Core.Blueprint.Storage;
using Core.Blueprint.Storage.Adapters;
namespace Core.Blueprint.DAL.Storage.Contracts
{
public interface IBlobStorageService
{
Task<IEnumerable<BlobFileAdapter>> GetBlobsListAsync(string? prefix);
Task<Response<BlobContentInfo>> UploadBlobAsync(string blobName, Stream content);
Task<BlobFileAdapter> UploadBlobAsync(BlobAddDto newBlob);
ValueTask<BlobDownloadUriAdapter> DownloadBlobAsync(string blobName);
Task<BlobFileAdapter?> DeleteBlobAsync(string fileName);
}
}