Initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user