Fusonic.Extensions.MediatR
8.0.1-rc.2
Prefix Reserved
dotnet add package Fusonic.Extensions.MediatR --version 8.0.1-rc.2
NuGet\Install-Package Fusonic.Extensions.MediatR -Version 8.0.1-rc.2
<PackageReference Include="Fusonic.Extensions.MediatR" Version="8.0.1-rc.2" />
paket add Fusonic.Extensions.MediatR --version 8.0.1-rc.2
#r "nuget: Fusonic.Extensions.MediatR, 8.0.1-rc.2"
// Install Fusonic.Extensions.MediatR as a Cake Addin #addin nuget:?package=Fusonic.Extensions.MediatR&version=8.0.1-rc.2&prerelease // Install Fusonic.Extensions.MediatR as a Cake Tool #tool nuget:?package=Fusonic.Extensions.MediatR&version=8.0.1-rc.2&prerelease
MediatR
This project contains a simplified version 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.
MediatR transaction handling
There are decorators to run all MediatR-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 | Versions 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. |
-
net8.0
- Fusonic.Extensions.Common (>= 8.0.1-rc.2)
- SimpleInjector (>= 5.4.2)
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 |
---|