Concordia.MediatR 2.5.0

dotnet add package Concordia.MediatR --version 2.5.0
                    
NuGet\Install-Package Concordia.MediatR -Version 2.5.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Concordia.MediatR" Version="2.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Concordia.MediatR" Version="2.5.0" />
                    
Directory.Packages.props
<PackageReference Include="Concordia.MediatR" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Concordia.MediatR --version 2.5.0
                    
#r "nuget: Concordia.MediatR, 2.5.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Concordia.MediatR@2.5.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Concordia.MediatR&version=2.5.0
                    
Install as a Cake Addin
#tool nuget:?package=Concordia.MediatR&version=2.5.0
                    
Install as a Cake Tool

⚠️ Concordia.MediatR has been discontinued

This package is deprecated and will not receive further updates. Starting from version 3.0.0, Concordia has been renamed to Synaptrix, and the MediatR compatibility layer has been removed.

Why was this package discontinued?

Synaptrix v3.0.0 focuses on compile-time source generation via Synaptrix.Generator, which provides zero-allocation, sub-2 ns dispatch. The runtime reflection-based approach offered by Concordia.MediatR is no longer maintained. If you need a MediatR-style AddMediator() call with assembly scanning, consider using MediatR directly alongside Synaptrix.

What should I do?

Remove both Concordia.Core and Concordia.MediatR, then install the Synaptrix meta-package which includes Synaptrix.Core and Synaptrix.Generator:

dotnet remove package Concordia.Core
dotnet remove package Concordia.MediatR
dotnet add package Synaptrix

Migration guide

Before (Concordia + Concordia.MediatR) After (Synaptrix v3.0.0+)
using Concordia; using Synaptrix;
using Concordia.MediatR; (removed — no equivalent)
builder.Services.AddMediator(cfg => ...) builder.Services.AddSynaptrixHandlers()
Runtime reflection-based discovery Compile-time source generation
Concordia.Core + Concordia.MediatR packages Synaptrix meta-package

Update your Program.cs:

// Before
using Concordia;
using Concordia.MediatR;

builder.Services.AddMediator(cfg =>
{
    cfg.RegisterServicesFromAssembly(Assembly.GetExecutingAssembly());
});

// After
using Synaptrix;

builder.Services.AddSynaptrixHandlers();

All interfaces (IRequest, IRequestHandler, INotification, INotificationHandler, IPipelineBehavior, etc.) remain the same — just under the Synaptrix namespace instead of Concordia.

What's new in Synaptrix v3.0.0?

  • ValueTask everywhere: All handler, behavior, publisher, and processor return types changed from Task/Task<T> to ValueTask/ValueTask<T>, reducing allocations on synchronous hot paths.
  • IAsyncEnumerable streaming: New IStreamRequest<TResponse> / IStreamRequestHandler<TRequest, TResponse> interfaces with CreateStream<TResponse>() on ISender for efficient streaming of multiple results.
  • Compile-time only: The source generator produces a sealed GeneratedMediator with constructor-injected handlers and direct type-switch dispatch — no runtime reflection, no DI lookups on the hot path.

For full documentation, visit the Synaptrix GitHub repository.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.5.0 250 4/12/2026
2.4.1 109 4/8/2026
2.3.3 2,505 2/2/2026
2.3.2 115 2/2/2026
2.3.1 133 2/1/2026
2.2.0 123 2/1/2026
2.1.0 121 1/31/2026
2.0.0 631 1/11/2026
1.3.0 1,080 11/10/2025
1.2.6 403 10/6/2025
1.2.5 327 9/4/2025
1.2.3 215 9/4/2025
1.2.2 224 9/3/2025
1.2.0 271 8/31/2025
1.1.0 235 8/30/2025
1.0.1 412 7/30/2025
1.0.0 191 7/30/2025