From 51e78edb4acccb273a9a89d59ea1e22cfea41abd Mon Sep 17 00:00:00 2001 From: Workleap <53535748+Infra-Workleap@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:48:30 -0400 Subject: [PATCH] chore(deps): update dependency mediatr to 12.4.1 (#87) * chore(deps): update dependency mediatr to 12.4.1 * Restore the previous behavior of registering generic handlers from before MediatR 12.4.1 --------- Co-authored-by: Renovate Bot Co-authored-by: Anthony Simmon --- src/Workleap.Extensions.MediatR/MediatorBuilder.cs | 4 ++++ .../Workleap.Extensions.MediatR.csproj | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Workleap.Extensions.MediatR/MediatorBuilder.cs b/src/Workleap.Extensions.MediatR/MediatorBuilder.cs index 83306f4..e9d7d10 100644 --- a/src/Workleap.Extensions.MediatR/MediatorBuilder.cs +++ b/src/Workleap.Extensions.MediatR/MediatorBuilder.cs @@ -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); } diff --git a/src/Workleap.Extensions.MediatR/Workleap.Extensions.MediatR.csproj b/src/Workleap.Extensions.MediatR/Workleap.Extensions.MediatR.csproj index ea6f47f..846e122 100644 --- a/src/Workleap.Extensions.MediatR/Workleap.Extensions.MediatR.csproj +++ b/src/Workleap.Extensions.MediatR/Workleap.Extensions.MediatR.csproj @@ -14,7 +14,7 @@ - + all