Relevox.MediatRBridge
1.7.0
dotnet add package Relevox.MediatRBridge --version 1.7.0
NuGet\Install-Package Relevox.MediatRBridge -Version 1.7.0
<PackageReference Include="Relevox.MediatRBridge" Version="1.7.0" />
<PackageVersion Include="Relevox.MediatRBridge" Version="1.7.0" />
<PackageReference Include="Relevox.MediatRBridge" />
paket add Relevox.MediatRBridge --version 1.7.0
#r "nuget: Relevox.MediatRBridge, 1.7.0"
#:package Relevox.MediatRBridge@1.7.0
#addin nuget:?package=Relevox.MediatRBridge&version=1.7.0
#tool nuget:?package=Relevox.MediatRBridge&version=1.7.0
Relevox.MediatRBridge
GitHub · Migration guide · Changelog
Runs MediatR and Relevox, the source-generated mediator with
MediatR 12's handler signatures, side by side, so a solution can move to Relevox one feature at a time. The
bridge takes MediatR's IMediator, ISender and IPublisher: a message whose type implements Relevox's
interface goes to Relevox, anything else to MediatR.
dotnet add package Relevox
dotnet add package Relevox.MediatRBridge
services.AddMediatR(options => options.RegisterServicesFromAssemblyContaining<Program>());
services.AddRelevox();
services.AddMediatRBridge();
A moved request keeps MediatR's interface next to Relevox's, so its callers compile unchanged:
record PlaceOrder : MediatR.IRequest<int>, Relevox.IRequest<int>. Each request runs the pipeline of the
library that handles it. A notification with handlers on both sides runs MediatR's, then Relevox's.
Works with MediatR 12.0 and later. MediatR 12.x is Apache-2.0; 13 and later need the application's own MediatR licence. Once nothing is left on MediatR, remove the bridge and MediatR.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. net11.0 is compatible. |
-
net10.0
- MediatR (>= 12.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Relevox.Contracts (>= 1.7.0)
-
net11.0
- MediatR (>= 12.0.0)
- Relevox.Contracts (>= 1.7.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.