mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-06 15:44:26 +01:00
Allow file service to be used in plugins
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices.ComTypes;
|
||||
using BTCPayServer.Abstractions.Contracts;
|
||||
using BTCPayServer.Configuration;
|
||||
using BTCPayServer.Storage.Services;
|
||||
using BTCPayServer.Storage.Services.Providers;
|
||||
@@ -23,6 +24,7 @@ namespace BTCPayServer.Storage
|
||||
{
|
||||
serviceCollection.AddSingleton<StoredFileRepository>();
|
||||
serviceCollection.AddSingleton<FileService>();
|
||||
serviceCollection.AddSingleton<IFileService>(provider => provider.GetRequiredService<FileService>());
|
||||
// serviceCollection.AddSingleton<IStorageProviderService, AmazonS3FileProviderService>();
|
||||
serviceCollection.AddSingleton<IStorageProviderService, AzureBlobStorageFileProviderService>();
|
||||
serviceCollection.AddSingleton<IStorageProviderService, FileSystemFileProviderService>();
|
||||
|
||||
Reference in New Issue
Block a user