Fusonic.Extensions.Mediator 9.0.0-preview.1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
This is a prerelease version of Fusonic.Extensions.Mediator.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Fusonic.Extensions.Mediator --version 9.0.0-preview.1
NuGet\Install-Package Fusonic.Extensions.Mediator -Version 9.0.0-preview.1
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-preview.1" />
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-preview.1
#r "nuget: Fusonic.Extensions.Mediator, 9.0.0-preview.1"
#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-preview.1&prerelease

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

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 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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

Fusonic.Extensions.AspNetCore The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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

Fusonic.Extensions.Email The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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.0.0-preview.2 28 6/13/2024
9.0.0-preview.1 79 4/5/2024