AdaskoTheBeAsT.FluentValidation.MediatR
11.0.2
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package AdaskoTheBeAsT.FluentValidation.MediatR --version 11.0.2
NuGet\Install-Package AdaskoTheBeAsT.FluentValidation.MediatR -Version 11.0.2
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="AdaskoTheBeAsT.FluentValidation.MediatR" Version="11.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AdaskoTheBeAsT.FluentValidation.MediatR --version 11.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AdaskoTheBeAsT.FluentValidation.MediatR, 11.0.2"
#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 AdaskoTheBeAsT.FluentValidation.MediatR as a Cake Addin #addin nuget:?package=AdaskoTheBeAsT.FluentValidation.MediatR&version=11.0.2 // Install AdaskoTheBeAsT.FluentValidation.MediatR as a Cake Tool #tool nuget:?package=AdaskoTheBeAsT.FluentValidation.MediatR&version=11.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- FluentValidation (>= 11.9.1)
- MediatR (>= 12.2.0)
-
.NETStandard 2.1
- FluentValidation (>= 11.9.1)
- MediatR (>= 12.2.0)
-
net6.0
- FluentValidation (>= 11.9.1)
- MediatR (>= 12.2.0)
-
net7.0
- FluentValidation (>= 11.9.1)
- MediatR (>= 12.2.0)
-
net8.0
- FluentValidation (>= 11.9.1)
- MediatR (>= 12.2.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 |
---|---|---|
11.2.0 | 122 | 8/18/2024 |
11.0.2 | 105 | 5/27/2024 |
11.0.1 | 169 | 1/27/2024 |
11.0.0 | 195 | 12/1/2023 |
10.2.0 | 178 | 7/16/2023 |
10.1.0 | 149 | 5/4/2023 |
10.0.0 | 234 | 2/17/2023 |
9.1.0 | 309 | 1/22/2023 |
9.0.0 | 376 | 11/13/2022 |
8.0.0 | 387 | 10/17/2022 |
7.2.1 | 471 | 9/25/2022 |
7.2.0 | 409 | 9/7/2022 |
7.1.0 | 468 | 7/5/2022 |
7.0.0 | 446 | 5/14/2022 |
6.0.0 | 325 | 1/11/2022 |
5.3.3 | 289 | 1/2/2022 |
5.3.2 | 392 | 10/30/2021 |
5.3.1 | 566 | 8/29/2021 |
5.3.0 | 360 | 7/24/2021 |
5.2.0 | 374 | 6/4/2021 |
5.1.0 | 332 | 5/23/2021 |
5.0.1 | 349 | 4/25/2021 |
5.0.0 | 359 | 4/11/2021 |
4.4.0 | 391 | 3/7/2021 |
4.3.1 | 355 | 2/23/2021 |
4.3.0 | 388 | 2/6/2021 |
4.2.0 | 434 | 1/16/2021 |
4.1.0 | 546 | 12/16/2020 |
4.0.1 | 456 | 11/29/2020 |
4.0.0 | 458 | 11/11/2020 |
3.1.0 | 650 | 10/16/2020 |
3.0.0 | 493 | 10/10/2020 |
2.4.0 | 472 | 10/7/2020 |
2.3.1 | 484 | 10/4/2020 |
2.3.0 | 470 | 8/28/2020 |
2.2.0 | 562 | 8/13/2020 |
2.1.0 | 459 | 8/1/2020 |
2.0.2 | 524 | 7/25/2020 |
2.0.1 | 515 | 7/16/2020 |
2.0.0 | 508 | 7/7/2020 |
1.0.3 | 479 | 7/2/2020 |
1.0.2 | 514 | 5/20/2020 |
1.0.1 | 514 | 4/29/2020 |
1.0.0 | 638 | 3/1/2020 |
- MediatR 12.1.1
- FluentValidation 11.8.0