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))