From 3d19cf8e3f1af00190c8982cc643942c8879e453 Mon Sep 17 00:00:00 2001 From: Paul Welter Date: Wed, 20 Nov 2024 10:19:23 -0600 Subject: [PATCH] Update MediatorServiceExtensions.cs --- src/MediatR.CommandQuery/MediatorServiceExtensions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MediatR.CommandQuery/MediatorServiceExtensions.cs b/src/MediatR.CommandQuery/MediatorServiceExtensions.cs index 687e6fc..db1a7df 100644 --- a/src/MediatR.CommandQuery/MediatorServiceExtensions.cs +++ b/src/MediatR.CommandQuery/MediatorServiceExtensions.cs @@ -51,6 +51,7 @@ public static IServiceCollection AddRemoteDispatcher(this IServiceCollection ser { ArgumentNullException.ThrowIfNull(services); + // up to client to register RemoteDispatcher with correct HttpClient services.TryAddTransient(sp => sp.GetRequiredService()); services.AddOptions();