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.
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.
// Install Fusonic.Extensions.Mediator as a Cake Addin
#addin nuget:?package=Fusonic.Extensions.Mediator&version=9.0.0

// Install Fusonic.Extensions.Mediator as a Cake Tool
#tool nuget:?package=Fusonic.Extensions.Mediator&version=9.0.0                

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. 
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
9.5.0 150 10/4/2024
9.4.0 262 9/23/2024
9.3.1 226 9/11/2024
9.3.0 123 9/11/2024
9.2.0 165 8/8/2024
9.2.0-rc.3 51 8/7/2024
9.2.0-rc.2 35 8/5/2024
9.2.0-rc.1 47 8/1/2024
9.1.0 91 7/29/2024
9.0.0 521 7/17/2024
9.0.0-preview.2 66 6/13/2024
9.0.0-preview.1 113 4/5/2024