Fusonic.Extensions.Mediator 9.0.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Fusonic.Extensions.Mediator --version 9.0.0
                    
NuGet\Install-Package Fusonic.Extensions.Mediator -Version 9.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="Fusonic.Extensions.Mediator" Version="9.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fusonic.Extensions.Mediator" Version="9.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Fusonic.Extensions.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 Fusonic.Extensions.Mediator --version 9.0.0
                    
#r "nuget: Fusonic.Extensions.Mediator, 9.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 Fusonic.Extensions.Mediator@9.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=Fusonic.Extensions.Mediator&version=9.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Fusonic.Extensions.Mediator&version=9.0.0
                    
Install as a Cake Tool

Mediator

This project contains a simple implementation of the common mediator pattern. The implementation focused on simplifying version 11.1.0 of the MediatR package. The pipelining was removed and a pure mediator implementation remains.

ICommand, IQuery: Use those instead of directly using the IRequest interfaces to clearly distinguish between commands and queries.
OutOfBandAttribute: You can put this on your Handler-class. When used together with the Hangfire-Decorator, the execution of the handler will be queued as a background job automatically.

Mediator transaction handling

There are decorators to run all requests and notifications within a transaction.
To enable this feature use the following SimpleInjector-Configuration:

Container.RegisterDecorator(typeof(IRequestHandler<,>), typeof(TransactionalRequestHandlerDecorator<,>));
Container.RegisterDecorator(typeof(INotificationHandler<>), typeof(TransactionNotificationHandlerDecorator<>));
Container.RegisterSingleton<ITransactionScopeHandler, TransactionScopeHandler>();
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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 (3)

Showing the top 3 NuGet packages that depend on Fusonic.Extensions.Mediator:

Package Downloads
Fusonic.Extensions.Hangfire

Provides Hangfire extensions, especially suited for CQRS development. (Out of band processing).

Fusonic.Extensions.AspNetCore

Provides ASP.NET Core extensions (Middelwares, Utilities ...)

Fusonic.Extensions.Email

Contains common functionality for rendering email templates using razor engine and sending emails via MailKit.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.0 702 11/25/2025
10.0.0-rc.2 161 11/24/2025
10.0.0-rc.1 135 9/12/2025
9.5.4 597 8/20/2025
9.5.3 663 3/28/2025
9.5.2 697 1/16/2025
9.5.0 357 10/4/2024
9.4.0 412 9/23/2024
9.3.1 367 9/11/2024
9.3.0 254 9/11/2024
9.2.0 263 8/8/2024
9.2.0-rc.3 101 8/7/2024
9.2.0-rc.2 76 8/5/2024
9.2.0-rc.1 95 8/1/2024
9.1.0 207 7/29/2024
9.0.0 859 7/17/2024
9.0.0-preview.2 112 6/13/2024
9.0.0-preview.1 167 4/5/2024