AdaskoTheBeAsT.FluentValidation.SimpleInjector
10.0.0
dotnet add package AdaskoTheBeAsT.FluentValidation.SimpleInjector --version 10.0.0
NuGet\Install-Package AdaskoTheBeAsT.FluentValidation.SimpleInjector -Version 10.0.0
<PackageReference Include="AdaskoTheBeAsT.FluentValidation.SimpleInjector" Version="10.0.0" />
<PackageVersion Include="AdaskoTheBeAsT.FluentValidation.SimpleInjector" Version="10.0.0" />
<PackageReference Include="AdaskoTheBeAsT.FluentValidation.SimpleInjector" />
paket add AdaskoTheBeAsT.FluentValidation.SimpleInjector --version 10.0.0
#r "nuget: AdaskoTheBeAsT.FluentValidation.SimpleInjector, 10.0.0"
#:package AdaskoTheBeAsT.FluentValidation.SimpleInjector@10.0.0
#addin nuget:?package=AdaskoTheBeAsT.FluentValidation.SimpleInjector&version=10.0.0
#tool nuget:?package=AdaskoTheBeAsT.FluentValidation.SimpleInjector&version=10.0.0
AdaskoTheBeAsT.FluentValidation.SimpleInjector
FluentValidation extensions to SimpleInjector
Badges
Usage
This library scans assemblies and adds implementations of IValidator<>
to the SimpleInjector container.
There are few options to use with Container
instance:
Marker type from assembly which will be scanned
container.AddFluentValidation(typeof(MyValidator), type2 /*, ...*/);
List of assemblies which will be scanned.
Below is sample for scanning assemblies from some solution.
[ExcludeFromCodeCoverage] public static class FluentValidationConfigurator { private const string NamespacePrefix = "YourNamespace"; public static void Configure(Container container) { var loadedAssemblies = AppDomain.CurrentDomain.GetAssemblies().ToList(); var assemblies = new List<Assembly>(); var mainAssembly = typeof(FluentValidationConfigurator).Assembly; var refAssemblies = mainAssembly.GetReferencedAssemblies(); foreach (var assemblyName in refAssemblies .Where(a => a.FullName.StartsWith(NamespacePrefix, StringComparison.OrdinalIgnoreCase))) { var assembly = loadedAssemblies.Find(l => l.FullName == assemblyName.FullName) ?? AppDomain.CurrentDomain.Load(assemblyName); assemblies.Add(assembly); } container.AddFluentValidation(assemblies); } }
Special configuration action with different lifetime for validators
container.AddFluentValidation( cfg => { cfg.WithAssembliesToScan(assemblies); cfg.AsScoped(); });
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. 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 was computed. 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. |
.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. |
-
.NETStandard 2.0
- FluentValidation (>= 11.11.0)
- SimpleInjector (>= 5.5.0)
-
.NETStandard 2.1
- FluentValidation (>= 11.11.0)
- SimpleInjector (>= 5.5.0)
-
net6.0
- FluentValidation (>= 11.11.0)
- SimpleInjector (>= 5.5.0)
-
net7.0
- FluentValidation (>= 11.11.0)
- SimpleInjector (>= 5.5.0)
-
net8.0
- FluentValidation (>= 11.11.0)
- SimpleInjector (>= 5.5.0)
-
net9.0
- FluentValidation (>= 11.11.0)
- SimpleInjector (>= 5.5.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 | |
---|---|---|---|
10.0.0 | 296 | 1/4/2025 | |
9.2.0 | 294 | 8/18/2024 | |
9.0.2 | 161 | 5/27/2024 | |
9.0.1 | 234 | 1/27/2024 | |
9.0.0 | 254 | 12/2/2023 | |
8.2.0 | 277 | 7/16/2023 | |
8.1.0 | 216 | 5/4/2023 | |
7.1.0 | 375 | 1/22/2023 | |
7.0.0 | 462 | 11/13/2022 | |
6.3.2 | 451 | 10/17/2022 | |
6.3.1 | 540 | 9/25/2022 | |
6.3.0 | 511 | 9/7/2022 | |
6.2.0 | 519 | 7/24/2022 | |
6.1.0 | 535 | 7/5/2022 | |
6.0.0 | 518 | 5/14/2022 | |
5.3.4 | 639 | 2/9/2022 | |
5.3.3 | 375 | 1/2/2022 | |
5.3.2 | 475 | 10/30/2021 | |
5.3.1 | 619 | 8/29/2021 | |
5.3.0 | 456 | 7/24/2021 | |
5.2.0 | 461 | 6/4/2021 | |
5.1.0 | 449 | 5/23/2021 | |
5.0.1 | 440 | 4/25/2021 | |
5.0.0 | 454 | 4/11/2021 | |
4.4.0 | 472 | 3/7/2021 | |
4.3.1 | 463 | 2/23/2021 | |
4.3.0 | 514 | 2/6/2021 | |
4.2.0 | 547 | 1/16/2021 | |
4.1.0 | 662 | 12/16/2020 | |
4.0.1 | 595 | 11/29/2020 | |
4.0.0 | 518 | 11/11/2020 | |
3.4.0 | 710 | 10/25/2020 | |
3.3.0 | 659 | 10/16/2020 | |
3.2.1 | 599 | 10/4/2020 | |
3.2.0 | 563 | 8/28/2020 | |
3.1.0 | 651 | 8/13/2020 | |
3.0.3 | 606 | 7/25/2020 | |
3.0.2 | 595 | 7/16/2020 | |
3.0.1 | 592 | 7/14/2020 | |
3.0.0 | 593 | 7/7/2020 | |
2.0.2 | 579 | 7/2/2020 | |
2.0.1 | 613 | 6/16/2020 | |
2.0.0 | 664 | 6/14/2020 | |
1.2.4 | 638 | 5/20/2020 | |
1.2.3 | 606 | 4/29/2020 | |
1.2.2 | 605 | 4/21/2020 | |
1.2.1 | 669 | 3/7/2020 | |
1.2.0 | 654 | 3/1/2020 | |
1.1.0 | 991 | 3/1/2020 | |
1.0.0 | 997 | 3/1/2020 |
- update .NET 9.0
- update FluentValidation 11.11.0
- update SimpleInjector 5.5.0