From 9b4fe5930ea95515fd462748093f03bef61383ff Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Tue, 3 Dec 2024 22:37:10 +0900 Subject: [PATCH] Bump TwentyTwenty.Storage --- BTCPayServer/BTCPayServer.csproj | 10 +++++----- .../HostedServices/BlobMigratorHostedService.cs | 1 - .../AzureBlobStorageConnectionStringValidator.cs | 3 +-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index 9b1204433..e8779f234 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -76,11 +76,11 @@ - - - - - + + + + + diff --git a/BTCPayServer/HostedServices/BlobMigratorHostedService.cs b/BTCPayServer/HostedServices/BlobMigratorHostedService.cs index 8a62bed94..5228abd76 100644 --- a/BTCPayServer/HostedServices/BlobMigratorHostedService.cs +++ b/BTCPayServer/HostedServices/BlobMigratorHostedService.cs @@ -11,7 +11,6 @@ using BTCPayServer.Services.Invoices; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -using Microsoft.WindowsAzure.Storage.Table; using NBitcoin; using Newtonsoft.Json; using Newtonsoft.Json.Linq; diff --git a/BTCPayServer/Storage/Services/Providers/AzureBlobStorage/Configuration/AzureBlobStorageConnectionStringValidator.cs b/BTCPayServer/Storage/Services/Providers/AzureBlobStorage/Configuration/AzureBlobStorageConnectionStringValidator.cs index 38d9785f7..343f71e4e 100644 --- a/BTCPayServer/Storage/Services/Providers/AzureBlobStorage/Configuration/AzureBlobStorageConnectionStringValidator.cs +++ b/BTCPayServer/Storage/Services/Providers/AzureBlobStorage/Configuration/AzureBlobStorageConnectionStringValidator.cs @@ -1,6 +1,5 @@ using System; using System.ComponentModel.DataAnnotations; -using Microsoft.WindowsAzure.Storage; namespace BTCPayServer.Storage.Services.Providers.AzureBlobStorage.Configuration { @@ -10,7 +9,7 @@ namespace BTCPayServer.Storage.Services.Providers.AzureBlobStorage.Configuration { try { - CloudStorageAccount.Parse(value as string); + new Azure.Storage.Blobs.BlobClient(value as string, "unusedcontainer", "unusedblob"); return ValidationResult.Success; } catch (Exception e)