diff --git a/src/Altinn.App.Core/Extensions/ServiceCollectionExtensions.cs b/src/Altinn.App.Core/Extensions/ServiceCollectionExtensions.cs index 52a69a582..99008af15 100644 --- a/src/Altinn.App.Core/Extensions/ServiceCollectionExtensions.cs +++ b/src/Altinn.App.Core/Extensions/ServiceCollectionExtensions.cs @@ -162,6 +162,7 @@ public static bool IsAdded(this IServiceCollection services, Type serviceType) private static void AddEventServices(IServiceCollection services) { + services.AddTransient(); services.AddTransient(); services.TryAddSingleton();