From 404edf92c9e69cef251e09b73bd6c2b2f91d573d Mon Sep 17 00:00:00 2001 From: Raymen Scholten Date: Mon, 19 Feb 2024 14:20:50 +0100 Subject: [PATCH] Register mediatr services correctly --- .../src/Core.API/DependencyInjection/ApplicationInjection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/core/src/Core.API/DependencyInjection/ApplicationInjection.cs b/backend/core/src/Core.API/DependencyInjection/ApplicationInjection.cs index 60cb2d3..74ffb6f 100644 --- a/backend/core/src/Core.API/DependencyInjection/ApplicationInjection.cs +++ b/backend/core/src/Core.API/DependencyInjection/ApplicationInjection.cs @@ -18,7 +18,7 @@ public static IServiceCollection AddApplication(this IServiceCollection services services.AddTransient(typeof(IPipelineBehavior<,>), typeof(ComplianceBehaviour<,>)); services.AddValidatorsFromAssembly(Application.AssemblyReference.Assembly); - services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(typeof(ApplicationInjection).Assembly)); + services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(Application.AssemblyReference.Assembly)); services.AddSingleton();