From b7dc9feb0e08e84d06468b8bc4f666551f7fdefd Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 28 Feb 2024 11:42:45 -0800 Subject: [PATCH] [deps] Vault: Update aspnet-health-checks monorepo (major) (#3294) * [deps] Vault: Update aspnet-health-checks monorepo * [PM-5249] Add updated Azure Storage Queues health check package that was split from the original Azure Storage health check package * [PM-5249] Remove Azure Queue Storage health checks and dependencies * [PM-5249] Remove unused Redis, Service Bus, and SendGrid health checks --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Shane Melton --- src/Api/Api.csproj | 11 ++------ .../Utilities/ServiceCollectionExtensions.cs | 28 ------------------- 2 files changed, 3 insertions(+), 36 deletions(-) diff --git a/src/Api/Api.csproj b/src/Api/Api.csproj index c659ec52d6..532c0f6e12 100644 --- a/src/Api/Api.csproj +++ b/src/Api/Api.csproj @@ -32,15 +32,10 @@ - - - - - - - + + - + diff --git a/src/Api/Utilities/ServiceCollectionExtensions.cs b/src/Api/Utilities/ServiceCollectionExtensions.cs index 310a775891..46f2d272bb 100644 --- a/src/Api/Utilities/ServiceCollectionExtensions.cs +++ b/src/Api/Utilities/ServiceCollectionExtensions.cs @@ -92,34 +92,6 @@ public static class ServiceCollectionExtensions { builder.AddSqlServer(globalSettings.SqlServer.ConnectionString); } - - if (CoreHelpers.SettingHasValue(globalSettings.DistributedCache?.Redis?.ConnectionString)) - { - builder.AddRedis(globalSettings.DistributedCache.Redis.ConnectionString); - } - - if (CoreHelpers.SettingHasValue(globalSettings.Storage.ConnectionString)) - { - builder.AddAzureQueueStorage(globalSettings.Storage.ConnectionString, name: "storage_queue") - .AddAzureQueueStorage(globalSettings.Events.ConnectionString, name: "events_queue"); - } - - if (CoreHelpers.SettingHasValue(globalSettings.Notifications.ConnectionString)) - { - builder.AddAzureQueueStorage(globalSettings.Notifications.ConnectionString, - name: "notifications_queue"); - } - - if (CoreHelpers.SettingHasValue(globalSettings.ServiceBus.ConnectionString)) - { - builder.AddAzureServiceBusTopic(_ => globalSettings.ServiceBus.ConnectionString, - _ => globalSettings.ServiceBus.ApplicationCacheTopicName, name: "service_bus"); - } - - if (CoreHelpers.SettingHasValue(globalSettings.Mail.SendGridApiKey)) - { - builder.AddSendGrid(globalSettings.Mail.SendGridApiKey); - } }); }