mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
21 lines
805 B
C#
21 lines
805 B
C#
#nullable enable
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.Data;
|
|
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(Uri baseUri, StoredFile storedFile, StorageSettings configuration);
|
|
Task<string> GetTemporaryFileUrl(Uri baseUri, StoredFile storedFile, StorageSettings configuration,
|
|
DateTimeOffset expiry, bool isDownload, BlobUrlAccess access = BlobUrlAccess.Read);
|
|
StorageProvider StorageProvider();
|
|
}
|
|
}
|