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" />
                    
Directory.Packages.props
<PackageReference Include="Trellis.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 Trellis.Mediator --version 3.0.0-alpha.95
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Trellis.Mediator&version=3.0.0-alpha.95&prerelease
                    
Install as a Cake Tool

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

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