TimeWarp.Mediator.Contracts
14.0.0
Prefix Reserved
dotnet add package TimeWarp.Mediator.Contracts --version 14.0.0
NuGet\Install-Package TimeWarp.Mediator.Contracts -Version 14.0.0
<PackageReference Include="TimeWarp.Mediator.Contracts" Version="14.0.0" />
<PackageVersion Include="TimeWarp.Mediator.Contracts" Version="14.0.0" />
<PackageReference Include="TimeWarp.Mediator.Contracts" />
paket add TimeWarp.Mediator.Contracts --version 14.0.0
#r "nuget: TimeWarp.Mediator.Contracts, 14.0.0"
#:package TimeWarp.Mediator.Contracts@14.0.0
#addin nuget:?package=TimeWarp.Mediator.Contracts&version=14.0.0
#tool nuget:?package=TimeWarp.Mediator.Contracts&version=14.0.0
TimeWarp.Mediator.Contracts
Message contracts for TimeWarp Mediator 14.0: one set of requests, commands, queries, notifications, and pipeline types for both dispatchers.
Install
dotnet add package TimeWarp.Mediator.Contracts --version 14.0.0
A generated host also needs TimeWarp.Mediator.Generators at the same version. A reflection host needs TimeWarp.Mediator instead. Keep every TimeWarp.Mediator package on 14.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.AddGeneratedMediator();
string reply = await provider.GetRequiredService<ISender>().Send(new Ping());
AddGeneratedMediator() is emitted into the host project. Call it from the host, not from this contracts assembly. Reference only this package from a project that declares messages and does not dispatch them.
Migration
14.0.0 is not a drop-in for 13.0.0.
- This package and
TimeWarp.Mediatortarget net10.0 only. Stay on 13.0.0 if you cannot. AddMediator()does not register the generated mediator. A generated host callsAddGeneratedMediator().- The generated dispatcher does not run streams, pre/post processors, or the exception cascade.
- From MediatR: change
using MediatR;tousing TimeWarp.Mediator;andAddMediatRtoAddMediator.
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
- No dependencies.
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 |
|---|---|---|
| 14.0.0 | 3,777 | 10/13/2026 |
| 14.0.0-beta.5 | 719 | 10/13/2026 |
| 14.0.0-beta.4 | 1,335 | 9/27/2026 |
| 14.0.0-beta.3 | 75 | 9/25/2026 |
| 14.0.0-beta.2 | 76 | 9/25/2026 |
| 14.0.0-beta.1 | 555 | 9/2/2026 |
| 13.0.0 | 16,527 | 8/4/2025 |
| 13.0.0-beta.4 | 236 | 7/30/2025 |
| 13.0.0-beta.3 | 241 | 7/28/2025 |
| 13.0.0-beta.2 | 151 | 7/5/2025 |
| 13.0.0-beta.1 | 132 | 7/5/2025 |