Datapoint.Mediator.DependencyInjection 4.0.0-beta.6

This is a prerelease version of Datapoint.Mediator.DependencyInjection.
dotnet add package Datapoint.Mediator.DependencyInjection --version 4.0.0-beta.6
                    
NuGet\Install-Package Datapoint.Mediator.DependencyInjection -Version 4.0.0-beta.6
                    
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="Datapoint.Mediator.DependencyInjection" Version="4.0.0-beta.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Datapoint.Mediator.DependencyInjection" Version="4.0.0-beta.6" />
                    
Directory.Packages.props
<PackageReference Include="Datapoint.Mediator.DependencyInjection" />
                    
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 Datapoint.Mediator.DependencyInjection --version 4.0.0-beta.6
                    
#r "nuget: Datapoint.Mediator.DependencyInjection, 4.0.0-beta.6"
                    
#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 Datapoint.Mediator.DependencyInjection@4.0.0-beta.6
                    
#: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=Datapoint.Mediator.DependencyInjection&version=4.0.0-beta.6&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Datapoint.Mediator.DependencyInjection&version=4.0.0-beta.6&prerelease
                    
Install as a Cake Tool

Datapoint.Mediator.DependencyInjection

Registers Datapoint.Mediator, your handlers and behaviours with Microsoft.Extensions.DependencyInjection.

services.AddMediator(o => o
    .AddHandlersFromAssemblyContaining<CreateInvoiceHandler>()
    .AddBehavior<LoggingBehavior>());

IMediator, handlers and behaviours are scoped by default. A second handler for the same command or query, or an invalid action name, throws when AddMediator runs.

Documentation: Dependency injection · Manual

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 (3)

Showing the top 3 NuGet packages that depend on Datapoint.Mediator.DependencyInjection:

Package Downloads
Datapoint.Mediator.FluentValidation.DependencyInjection

Registers the Datapoint.Mediator FluentValidation behaviour with AddValidationBehavior().

Datapoint.Mediator.EntityFrameworkCore.DependencyInjection

Registers the Datapoint.Mediator Entity Framework Core transaction behaviour with AddTransactionBehavior<TDbContext>().

Datapoint.Mediator.Authorization.DependencyInjection

Registers the Datapoint.Mediator authorization behaviour and authorizers with Microsoft.Extensions.DependencyInjection.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.0-beta.6 0 11/3/2026
4.0.0-beta.5 0 11/3/2026
4.0.0-beta.4 5 11/3/2026
4.0.0-beta.3 142 11/2/2026
4.0.0-beta.2 68 11/1/2026
4.0.0-beta.1 54 11/1/2026
4.0.0-alpha.1 61 10/31/2026