From b3ff839be5a6fdbd5b2e70260ab27b6c3e4150da Mon Sep 17 00:00:00 2001 From: Raymen Scholten Date: Mon, 19 Feb 2024 14:21:10 +0100 Subject: [PATCH] Register mediatr services correctly (#67) --- .../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();