Files
btcpayserver/BTCPayServer/Storage/Services/Providers/AzureBlobStorage/AzureBlobStorageFileProviderService.cs
2019-04-22 16:57:22 +09:00

23 lines
818 B
C#

using System.Threading.Tasks;
using BTCPayServer.Storage.Models;
using BTCPayServer.Storage.Services.Providers.AzureBlobStorage.Configuration;
using TwentyTwenty.Storage;
using TwentyTwenty.Storage.Azure;
namespace BTCPayServer.Storage.Services.Providers.AzureBlobStorage
{
public class
AzureBlobStorageFileProviderService : BaseTwentyTwentyStorageFileProviderServiceBase<
AzureBlobStorageConfiguration>
{
public override StorageProvider StorageProvider()
{
return Storage.Models.StorageProvider.AzureBlobStorage;
}
protected override Task<IStorageProvider> GetStorageProvider(AzureBlobStorageConfiguration configuration)
{
return Task.FromResult<IStorageProvider>(new AzureStorageProvider(configuration));
}
}
}