Skip to content

Commit

Permalink
Update MediatorServiceExtensions.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
pwelter34 committed Nov 20, 2024
1 parent 4ec2ae1 commit 3d19cf8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MediatR.CommandQuery/MediatorServiceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<IDispatcher>(sp => sp.GetRequiredService<RemoteDispatcher>());
services.AddOptions<DispatcherOptions>();

Expand Down

0 comments on commit 3d19cf8

Please sign in to comment.