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
                    
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.Contracts" 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.Contracts" Version="14.0.0" />
                    
Directory.Packages.props
<PackageReference Include="TimeWarp.Mediator.Contracts" />
                    
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.Contracts --version 14.0.0
                    
#r "nuget: TimeWarp.Mediator.Contracts, 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.Contracts@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.Contracts&version=14.0.0
                    
Install as a Cake Addin
#tool nuget:?package=TimeWarp.Mediator.Contracts&version=14.0.0
                    
Install as a Cake Tool

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.Mediator target net10.0 only. Stay on 13.0.0 if you cannot.
  • AddMediator() does not register the generated mediator. A generated host calls AddGeneratedMediator().
  • The generated dispatcher does not run streams, pre/post processors, or the exception cascade.
  • From MediatR: change using MediatR; to using TimeWarp.Mediator; and AddMediatR to 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.
  • net10.0

    • No dependencies.

NuGet packages (4)

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

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.Mediator

Reflection-based mediator (MediatR fork): AddMediator() registers request/response, notifications, streams, and pipeline behaviors over Microsoft.Extensions.DependencyInjection by assembly scan. The source-generated, AOT-friendly dispatcher is separate (TimeWarp.Mediator.Contracts and TimeWarp.Mediator.Generators, AddGeneratedMediator) and does not reference this package.

TimeWarp.State.Telemetry

OpenTelemetry instrumentation for the TimeWarp.State mediator pipeline: action spans, timing, and opt-in AOT-safe state snapshots.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
14.0.0 274 10/13/2026
14.0.0-beta.5 266 10/13/2026
14.0.0-beta.4 978 9/27/2026
14.0.0-beta.3 66 9/25/2026
14.0.0-beta.2 66 9/25/2026
14.0.0-beta.1 537 9/2/2026
13.0.0 14,918 8/4/2025
13.0.0-beta.4 226 7/30/2025
13.0.0-beta.3 232 7/28/2025
13.0.0-beta.2 141 7/5/2025
13.0.0-beta.1 126 7/5/2025