23 lines
692 B
C#
23 lines
692 B
C#
namespace PowderCoating.Application.Interfaces;
|
|
|
|
public interface IAzureBlobStorageService
|
|
{
|
|
Task<(bool Success, string ErrorMessage)> UploadAsync(
|
|
string containerName,
|
|
string blobName,
|
|
Stream content,
|
|
string contentType);
|
|
|
|
Task<(bool Success, byte[] Content, string ContentType, string ErrorMessage)> DownloadAsync(
|
|
string containerName,
|
|
string blobName);
|
|
|
|
Task<(bool Success, string ErrorMessage)> DeleteAsync(
|
|
string containerName,
|
|
string blobName);
|
|
|
|
Task<bool> ExistsAsync(string containerName, string blobName);
|
|
|
|
Task<IEnumerable<string>> ListBlobsByPrefixAsync(string containerName, string prefix);
|
|
}
|