2019-04-22 09:41:20 +02:00
|
|
|
using System;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using BTCPayServer.Storage.Models;
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
using TwentyTwenty.Storage;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Storage.Services.Providers
|
|
|
|
{
|
|
|
|
public interface IStorageProviderService
|
|
|
|
{
|
|
|
|
Task<StoredFile> AddFile(IFormFile formFile, StorageSettings configuration);
|
|
|
|
Task RemoveFile(StoredFile storedFile, StorageSettings configuration);
|
2019-05-24 06:44:23 +00:00
|
|
|
Task<string> GetFileUrl(Uri baseUri, StoredFile storedFile, StorageSettings configuration);
|
|
|
|
Task<string> GetTemporaryFileUrl(Uri baseUri, StoredFile storedFile, StorageSettings configuration,
|
2019-04-22 09:41:20 +02:00
|
|
|
DateTimeOffset expiry, bool isDownload, BlobUrlAccess access = BlobUrlAccess.Read);
|
|
|
|
StorageProvider StorageProvider();
|
|
|
|
}
|
|
|
|
}
|