From 2b141a2976998a04610195c2980d5ced450911c0 Mon Sep 17 00:00:00 2001 From: Roar Mjelde <36594318+Ceredron@users.noreply.github.com> Date: Wed, 9 Oct 2024 13:39:23 +0200 Subject: [PATCH] Disable Dialogporten for testing --- .../DependencyInjection.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Altinn.Correspondence.Integrations/DependencyInjection.cs b/src/Altinn.Correspondence.Integrations/DependencyInjection.cs index ae94747e..1f71aaa1 100644 --- a/src/Altinn.Correspondence.Integrations/DependencyInjection.cs +++ b/src/Altinn.Correspondence.Integrations/DependencyInjection.cs @@ -57,9 +57,10 @@ public static void AddIntegrations(this IServiceCollection services, IConfigurat services.AddHttpClient((client) => client.BaseAddress = new Uri(altinnOptions.PlatformGatewayUrl)) .AddMaskinportenHttpMessageHandler(); - services.RegisterMaskinportenClientDefinition(typeof(IDialogportenService).FullName, maskinportenSettings); + /*services.RegisterMaskinportenClientDefinition(typeof(IDialogportenService).FullName, maskinportenSettings); services.AddHttpClient((client) => client.BaseAddress = new Uri(altinnOptions.PlatformGatewayUrl)) - .AddMaskinportenHttpMessageHandler(); + .AddMaskinportenHttpMessageHandler();*/ + services.AddScoped(); services.RegisterMaskinportenClientDefinition(typeof(IAltinnNotificationService).FullName, maskinportenSettings); services.AddHttpClient((client) => client.BaseAddress = new Uri(altinnOptions.PlatformGatewayUrl))