From 399fdf439dd4575239147fccdacdaeafc824d664 Mon Sep 17 00:00:00 2001 From: Martin Gunnerud Date: Mon, 18 Nov 2024 10:58:47 +0100 Subject: [PATCH] fix dependency injection --- .../ProgramConfigurationAndDependencyInjection.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bff/src/Altinn.Authentication.UI/Altinn.Authentication.UI/Extensions/ProgramConfigurationAndDependencyInjection.cs b/bff/src/Altinn.Authentication.UI/Altinn.Authentication.UI/Extensions/ProgramConfigurationAndDependencyInjection.cs index 2e82c317..ef2613ae 100644 --- a/bff/src/Altinn.Authentication.UI/Altinn.Authentication.UI/Extensions/ProgramConfigurationAndDependencyInjection.cs +++ b/bff/src/Altinn.Authentication.UI/Altinn.Authentication.UI/Extensions/ProgramConfigurationAndDependencyInjection.cs @@ -148,7 +148,10 @@ public static IServiceCollection AddIntegrationLayer(this IServiceCollection ser services.AddHttpClient(); services.AddHttpClient(); services.AddHttpClient(); + services.AddHttpClient(); + services.AddHttpClient(); services.AddHttpClient(); + services.AddHttpClient(); return services; } @@ -169,9 +172,7 @@ public static IServiceCollection AddCoreServices(this IServiceCollection service services.AddTransient(); services.AddTransient(); services.AddTransient(); - services.AddHttpClient(); - services.AddHttpClient(); - services.AddHttpClient(); + services.AddTransient(); return services; }