AdaskoTheBeAsT.FluentValidation.MediatR
13.0.0
dotnet add package AdaskoTheBeAsT.FluentValidation.MediatR --version 13.0.0
NuGet\Install-Package AdaskoTheBeAsT.FluentValidation.MediatR -Version 13.0.0
<PackageReference Include="AdaskoTheBeAsT.FluentValidation.MediatR" Version="13.0.0" />
<PackageVersion Include="AdaskoTheBeAsT.FluentValidation.MediatR" Version="13.0.0" />
<PackageReference Include="AdaskoTheBeAsT.FluentValidation.MediatR" />
paket add AdaskoTheBeAsT.FluentValidation.MediatR --version 13.0.0
#r "nuget: AdaskoTheBeAsT.FluentValidation.MediatR, 13.0.0"
#:package AdaskoTheBeAsT.FluentValidation.MediatR@13.0.0
#addin nuget:?package=AdaskoTheBeAsT.FluentValidation.MediatR&version=13.0.0
#tool nuget:?package=AdaskoTheBeAsT.FluentValidation.MediatR&version=13.0.0
AdaskoTheBeAsT.FluentValidation.MediatR
FluentValidation behavior for MediatR
Badges
Usage
It can be used in combination with AdaskoTheBeAsT.FluentValidation.SimpleInjector AdaskoTheBeAsT.MediatR.SimpleInjector
Validators registered as single
There should be only one validator per target If there is multiple combined validators needed then prepare one which will gather all rules from other based on Fluent Validation Including Rules and mark all sub validators with attribute SkipValidatorRegistrationAttribute.
container.AddFluentValidation(
cfg =>
{
cfg.WithAssembliesToScan(assemblies);
cfg.AsScoped();
cfg.RegisterAsSingleValidator(); // can be skipped as it is default
});
container.AddMediatR(
cfg =>
{
cfg.WithAssembliesToScan(assemblies);
cfg.UsingBuiltinPipelineProcessorBehaviors(true);
cfg.UsingPipelineProcessorBehaviors(typeof(FluentValidationPipelineBehavior<,>));
cfg.UsingStreamPipelineBehaviors(typeof(FluentValidationStreamPipelineBehavior<,>));
});
Validators registered as collection
container.AddFluentValidation(
cfg =>
{
cfg.WithAssembliesToScan(assemblies);
cfg.AsScoped();
cfg.RegisterAsValidatorCollection();
});
container.AddMediatR(
cfg =>
{
cfg.WithAssembliesToScan(assemblies);
cfg.UsingBuiltinPipelineProcessorBehaviors(true);
cfg.UsingPipelineProcessorBehaviors(typeof(FluentValidationCollectionPipelineBehavior<,>));
cfg.UsingStreamPipelineBehaviors(typeof(FluentValidationCollectionStreamPipelineBehavior<,>));
});
| 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. net9.0 is compatible. 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 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. |
-
net10.0
- FluentValidation (>= 12.1.0)
- MediatR (>= 13.1.0)
-
net8.0
- FluentValidation (>= 12.1.0)
- MediatR (>= 13.1.0)
-
net9.0
- FluentValidation (>= 12.1.0)
- MediatR (>= 13.1.0)
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 |
|---|---|---|
| 13.0.0 | 393 | 11/12/2025 |
| 12.0.0 | 457 | 1/4/2025 |
| 11.2.0 | 409 | 8/18/2024 |
| 11.0.2 | 288 | 5/27/2024 |
| 11.0.1 | 364 | 1/27/2024 |
| 11.0.0 | 330 | 12/1/2023 |
| 10.2.0 | 353 | 7/16/2023 |
| 10.1.0 | 340 | 5/4/2023 |
| 10.0.0 | 419 | 2/17/2023 |
| 9.1.0 | 496 | 1/22/2023 |
| 9.0.0 | 575 | 11/13/2022 |
| 8.0.0 | 589 | 10/17/2022 |
| 7.2.1 | 639 | 9/25/2022 |
| 7.2.0 | 616 | 9/7/2022 |
| 7.1.0 | 646 | 7/5/2022 |
| 7.0.0 | 646 | 5/14/2022 |
| 6.0.0 | 538 | 1/11/2022 |
| 5.3.3 | 487 | 1/2/2022 |
| 5.3.2 | 582 | 10/30/2021 |
| 5.3.1 | 800 | 8/29/2021 |
- NET 10.0 support
- MediatR 13.1.0
- FluentValidation 12.1.0