btcpayserver/BTCPayServer/Storage/Services/Providers/IStorageProviderService.cs
Andrew Camilleri d86cc9192e Support temporary links for local file system provider (#848)
* wip

* Support temporary links for local file system provider

* pass base url to file services

* fix test

* do not crash on errors with local filesystem

* remove console

* fix paranthesis
2019-05-24 15:44:23 +09:00

18 lines
763 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(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();
}
}