TimeWarp.Mediator 14.0.0

Prefix Reserved
dotnet add package TimeWarp.Mediator --version 14.0.0
                    
NuGet\Install-Package TimeWarp.Mediator -Version 14.0.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="TimeWarp.Mediator" Version="14.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TimeWarp.Mediator" Version="14.0.0" />
                    
Directory.Packages.props
<PackageReference Include="TimeWarp.Mediator" />
                    
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 TimeWarp.Mediator --version 14.0.0
                    
#r "nuget: TimeWarp.Mediator, 14.0.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 TimeWarp.Mediator@14.0.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=TimeWarp.Mediator&version=14.0.0
                    
Install as a Cake Addin
#tool nuget:?package=TimeWarp.Mediator&version=14.0.0
                    
Install as a Cake Tool

TimeWarp.Mediator

The reflection dispatcher for TimeWarp Mediator 14.0: assembly scanning, pipeline behaviors, streams, pre/post processors, and the exception cascade. It is the MediatR-shaped API. It is not the source-generated mediator.

Install

dotnet add package TimeWarp.Mediator --version 14.0.0

14.0.0 targets net10.0 only. Stay on 13.0.0 when you cannot:

dotnet add package TimeWarp.Mediator --version 13.0.0

Example

public sealed class Ping : IRequest<string> { }

public sealed class PingHandler : IRequestHandler<Ping, string>
{
  public Task<string> Handle(Ping request, CancellationToken cancellationToken) =>
    Task.FromResult("Pong");
}

services.AddMediator(cfg => cfg.RegisterServicesFromAssemblyContaining<PingHandler>());
string reply = await provider.GetRequiredService<ISender>().Send(new Ping());

AddMediator() registers IMediator, ISender, IPublisher, and the handlers it finds. It does not register the generated mediator. The reflection runtime is not trim or NativeAOT safe (IL2026 / IL3050).

Migration

14.0.0 is not a drop-in for 13.0.0, and neither stack is a drop-in for the other.

  • From MediatR: using MediatR; becomes using TimeWarp.Mediator;, and AddMediatR becomes AddMediator.
  • From 13.x reflection to the generated stack: reference TimeWarp.Mediator.Contracts and TimeWarp.Mediator.Generators, mark handler assemblies with [assembly: MediatorAssembly], and call AddGeneratedMediator(). Drop this package once nothing calls AddMediator().
  • Generated dispatch does not run streams, pre/post processors, or the exception cascade. Stay on this package if you need those.
  • ServiceFactory is removed; resolve through IServiceProvider. The handler wrappers and ServiceRegistrar are internal. Call ISender.Send, IPublisher.Publish, and AddMediator.

Matrix and steps: 13.x reflection to 14.x generated.

Documentation

License

Licensed as Unlicense AND Apache-2.0. The Apache-2.0 terms cover code derived from MediatR by Jimmy Bogard. The notice and unlicense files ship in this package.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on TimeWarp.Mediator:

Package Downloads
TimeWarp.Foundation.Contracts

Shared contracts, request/response markers, route/auth/query source generator, and common types for the TimeWarp foundation layer.

TimeWarp.Foundation.Server

ASP.NET server building blocks (modules, base endpoints, CORS, service discovery) for the TimeWarp foundation layer.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
14.0.0 88 10/13/2026
14.0.0-beta.5 34 10/13/2026
14.0.0-beta.4 66 9/27/2026
14.0.0-beta.3 63 9/25/2026
14.0.0-beta.2 59 9/25/2026
14.0.0-beta.1 84 9/2/2026
13.0.0 15,018 8/4/2025
13.0.0-beta.4 219 7/30/2025
13.0.0-beta.3 230 7/28/2025
13.0.0-beta.2 154 7/5/2025
13.0.0-beta.1 149 7/5/2025