Trellis.Mediator
3.0.0-alpha.95
This is a prerelease version of Trellis.Mediator.
dotnet add package Trellis.Mediator --version 3.0.0-alpha.95
NuGet\Install-Package Trellis.Mediator -Version 3.0.0-alpha.95
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="Trellis.Mediator" Version="3.0.0-alpha.95" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Trellis.Mediator" Version="3.0.0-alpha.95" />
<PackageReference Include="Trellis.Mediator" />
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 Trellis.Mediator --version 3.0.0-alpha.95
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Trellis.Mediator, 3.0.0-alpha.95"
#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 Trellis.Mediator@3.0.0-alpha.95
#: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=Trellis.Mediator&version=3.0.0-alpha.95&prerelease
#tool nuget:?package=Trellis.Mediator&version=3.0.0-alpha.95&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Trellis.Mediator
Result-aware pipeline behaviors for martinothamar/Mediator.
Provides validation, authorization, logging, tracing, and exception handling behaviors that understand Trellis Result<T> types and short-circuit correctly.
Authorization types (Actor, IActorProvider, IAuthorize, IAuthorizeResource) live in the separate Trellis.Authorization package — use them with or without CQRS.
Behaviors
| Behavior | Purpose |
|---|---|
ExceptionBehavior |
Catches unhandled exceptions → Error.Unexpected |
TracingBehavior |
OpenTelemetry Activity with Result status |
LoggingBehavior |
Structured logging with duration |
AuthorizationBehavior |
Static permission checks (IAuthorize) |
ResourceAuthorizationBehavior |
Resource-based auth (IAuthorizeResource) |
ValidationBehavior |
Self-validation via IValidate |
Usage
services.AddMediator(options =>
{
options.Assemblies = [typeof(MyCommand).Assembly];
options.PipelineBehaviors = ServiceCollectionExtensions.PipelineBehaviors;
});
See the full documentation for details.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Mediator.Abstractions (>= 3.0.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.2)
- Trellis.Authorization (>= 3.0.0-alpha.95)
- Trellis.Results (>= 3.0.0-alpha.95)
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 |
|---|---|---|
| 3.0.0-alpha.95 | 0 | 3/2/2026 |
| 3.0.0-alpha.94 | 0 | 3/2/2026 |
| 3.0.0-alpha.93 | 26 | 3/1/2026 |
| 3.0.0-alpha.92 | 38 | 2/28/2026 |