mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-27 07:57:33 +01:00
19 lines
737 B
C#
19 lines
737 B
C#
|
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);
|
||
|
Task<string> GetFileUrl(StoredFile storedFile, StorageSettings configuration);
|
||
|
Task<string> GetTemporaryFileUrl(StoredFile storedFile, StorageSettings configuration,
|
||
|
DateTimeOffset expiry, bool isDownload, BlobUrlAccess access = BlobUrlAccess.Read);
|
||
|
StorageProvider StorageProvider();
|
||
|
}
|
||
|
}
|