TimeWarp.Mediator
14.0.0
Prefix Reserved
See the version list below for details.
dotnet add package TimeWarp.Mediator --version 14.0.0
NuGet\Install-Package TimeWarp.Mediator -Version 14.0.0
<PackageReference Include="TimeWarp.Mediator" Version="14.0.0" />
<PackageVersion Include="TimeWarp.Mediator" Version="14.0.0" />
<PackageReference Include="TimeWarp.Mediator" />
paket add TimeWarp.Mediator --version 14.0.0
#r "nuget: TimeWarp.Mediator, 14.0.0"
#:package TimeWarp.Mediator@14.0.0
#addin nuget:?package=TimeWarp.Mediator&version=14.0.0
#tool nuget:?package=TimeWarp.Mediator&version=14.0.0
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;becomesusing TimeWarp.Mediator;, andAddMediatRbecomesAddMediator. - From 13.x reflection to the generated stack: reference
TimeWarp.Mediator.ContractsandTimeWarp.Mediator.Generators, mark handler assemblies with[assembly: MediatorAssembly], and callAddGeneratedMediator(). Drop this package once nothing callsAddMediator(). - Generated dispatch does not run streams, pre/post processors, or the exception cascade. Stay on this package if you need those.
ServiceFactoryis removed; resolve throughIServiceProvider. The handler wrappers andServiceRegistrarare internal. CallISender.Send,IPublisher.Publish, andAddMediator.
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 | 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. |
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
- TimeWarp.Mediator.Contracts (>= 14.0.0)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on TimeWarp.Mediator:
| Package | Downloads |
|---|---|
|
TimeWarp.State
State management for .NET. Blazor components, JavaScript interop, and render subscriptions are in TimeWarp.State.Blazor. |
|
|
TimeWarp.Nuru
Route-based CLI framework for .NET - batteries included with telemetry, REPL, and shell completion |
|
|
TimeWarp.Contracts
Transport-neutral operation contracts for HTTP, CLI, and MCP. One request type carries the canonical name; member metadata and kind are derived by each host's generator. |
|
|
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) for the TimeWarp foundation layer. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 15.0.0-beta.6 | 41 | 11/9/2026 |
| 15.0.0-beta.5 | 102 | 11/5/2026 |
| 15.0.0-beta.4 | 284 | 10/31/2026 |
| 15.0.0-beta.2 | 233 | 10/28/2026 |
| 15.0.0-beta.1 | 57 | 10/26/2026 |
| 14.0.0 | 1,147 | 10/13/2026 |
| 14.0.0-beta.5 | 54 | 10/13/2026 |
| 14.0.0-beta.4 | 77 | 9/27/2026 |
| 14.0.0-beta.3 | 73 | 9/25/2026 |
| 14.0.0-beta.2 | 70 | 9/25/2026 |
| 14.0.0-beta.1 | 99 | 9/2/2026 |
| 13.0.0 | 16,262 | 8/4/2025 |
| 13.0.0-beta.4 | 229 | 7/30/2025 |
| 13.0.0-beta.3 | 237 | 7/28/2025 |
| 13.0.0-beta.2 | 161 | 7/5/2025 |
| 13.0.0-beta.1 | 158 | 7/5/2025 |