Skip to content

Commit

Permalink
Restore the previous behavior of registering generic handlers from be…
Browse files Browse the repository at this point in the history
…fore MediatR 12.4.1
  • Loading branch information
asimmon committed Sep 20, 2024
1 parent a71a623 commit 0b2624b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Workleap.Extensions.MediatR/MediatorBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ void Configure(MediatRServiceConfiguration configuration)
// See: https://github.com/jbogard/MediatR/pull/989#issuecomment-1883574379
RegisterPreAndPostNonGenericClosedProcessors(configuration);

// Restore the previous behavior of registering generic handlers from before MediatR 12.4.1
// https://github.com/jbogard/MediatR/compare/v12.4.0...v12.4.1
configuration.RegisterGenericHandlers = true;

// Allow developers to override default configuration if needed
userDefinedConfigure?.Invoke(configuration);
}
Expand Down

0 comments on commit 0b2624b

Please sign in to comment.