Fluxera.Extensions.Validation
6.1.0
Prefix Reserved
See the version list below for details.
dotnet add package Fluxera.Extensions.Validation --version 6.1.0
NuGet\Install-Package Fluxera.Extensions.Validation -Version 6.1.0
<PackageReference Include="Fluxera.Extensions.Validation" Version="6.1.0" />
paket add Fluxera.Extensions.Validation --version 6.1.0
#r "nuget: Fluxera.Extensions.Validation, 6.1.0"
// Install Fluxera.Extensions.Validation as a Cake Addin #addin nuget:?package=Fluxera.Extensions.Validation&version=6.1.0 // Install Fluxera.Extensions.Validation as a Cake Tool #tool nuget:?package=Fluxera.Extensions.Validation&version=6.1.0
Fluxera.Extensions
A library that extends the Microsoft.Extensions.* libraries with custom functionality and also provices custom extensions.
Fluxera.Extensions.Caching
This extension contains Option
classes for configuring a remote distributed cache server and
several useful extension methods for the IDistributedCache
service.
Fluxera.Extensions.Common
This extension contains several custom services:
IDateTimeOffsetProvider
A service that provides mockable access to staticDateTimeOffset
.IDateTimeProvider
A service that provides mockable access to staticDateTime
.IGuidGenerator
A service to generateGuid
using different generators.IHashCalculator
A service to calculate hashes from input values.IJitterCalculator
A service that adds entropy to any given number.IPasswordGenerator
A service that generates random passwords.IRetryDelayCalculator
A service that calculates retry delay with (truncated) binary exponential back-off.IStringEncryptionService
A service that can be used to simply encrypt/decrypt texts.
Fluxera.Extensions.DataManagement
This extension contains an infrastructure for insertng seed data to databases.
Fluxera.Extensions.DependencyInjection
This extension contains several additions to the dependency injection extension.
- Decorator
- Add decorators to services.
- Named Services
- Add named service implementations.
- Lazy Services
- Add
Lazy<T>
as open generic sevice type. Any service will be resolved lazily from it.
- Add
- Object Accessor
- Provides a way to access object instances from the
IServiceCollection
while still configuring services.
- Provides a way to access object instances from the
Fluxera.Extensions.Http
This extension provides a way to register named HttpClient
services and several custom DelegatingHandler
implementations.
public interface ITestHttpClientService : IHttpClientService
{
Task<string> GetSomethingAsync();
}
public class TestHttpClientService : HttpClientServiceBase, ITestHttpClientService
{
/// <inheritdoc />
public TestHttpClientService(string name, HttpClient httpClient, RemoteService options)
: base(name, httpClient, options)
{
}
public async Task<string> GetSomethingAsync()
{
HttpResponseMessage response = await this.HttpClient.GetAsync("/");
return await response.Content.ReadAsStringAsync();
}
}
services.AddHttpClientService<ITestHttpClientService, TestHttpClientService>(
context => new TestHttpClientService(context.Name, context.HttpClient, context.Options));
Fluxera.Extensions.Localization
This extension contains several extension methods IStringLocalizer
service.
Fluxera.Extensions.OData
This extension provides a way to register named ODataClient
services using Simple.OData.Client
.
public interface ITestODataClientService : IODataClientService
{
}
public class TestODataClientService : ODataClientServiceBase<Person, string>, ITestODataClientService
{
/// <inheritdoc />
public TestODataClientService(string name, string collectionName, IODataClient oDataClient, RemoteService options)
: base(name, collectionName, oDataClient, options)
{
}
}
services.AddODataClientService<ITestODataClientService, TestODataClientService>("People",
context => new TestODataClientService(context.Name, context.CollectionName, context.ODataClient, context.Options));
Fluxera.Extensions.Validation
This extension provides an abstraction over validation frameworks. Any one framework can be used together with other ones. The validation results will merged by the extension.
At the moment System.ComponentModel.Annotations
and FluentValidation
is supported.
One can configure the validators to use like this:
IServiceCollection services = new ServiceCollection();
services.AddValidation(builder =>
{
builder
.AddDataAnnotations()
.AddFluentValidation(registration =>
{
registration.AddValidator<PersonValidator>();
});
});
References
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 was computed. 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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | 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.1
- Fluxera.Extensions.DependencyInjection (>= 6.1.0)
- Fluxera.Extensions.Validation.Abstractions (>= 6.1.0)
- Fluxera.Utilities (>= 6.0.16)
- JetBrains.Annotations (>= 2022.1.0)
- Microsoft.Extensions.DependencyInjection (>= 6.0.0)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on Fluxera.Extensions.Validation:
Package | Downloads |
---|---|
Fluxera.Repository
A generic repository implementation. |
|
Fluxera.Extensions.Hosting.Modules.AspNetCore
A module that enables ASP.NET Core. |
|
Fluxera.Extensions.Validation.DataAnnotations
The custom extensions for DataAnnotations validation. |
|
Fluxera.Extensions.Validation.FluentValidation
The custom extensions for FluentValidation validation. |
|
Fluxera.Extensions.Hosting.Modules.Messaging
A module that enables messaging based on MassTransit. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
9.0.2 | 351 | 11/16/2024 |
9.0.1 | 113 | 11/14/2024 |
9.0.0 | 73 | 11/14/2024 |
8.3.4 | 575 | 11/1/2024 |
8.3.3 | 101 | 7/9/2024 |
8.3.2 | 1,762 | 6/12/2024 |
8.3.1 | 777 | 6/2/2024 |
8.3.0 | 749 | 5/26/2024 |
8.2.1 | 121 | 5/24/2024 |
8.2.0 | 2,765 | 4/24/2024 |
8.1.0 | 4,100 | 4/18/2024 |
8.0.7 | 1,152 | 4/13/2024 |
8.0.6 | 238 | 4/13/2024 |
8.0.5 | 862 | 3/19/2024 |
8.0.4 | 2,497 | 2/22/2024 |
8.0.3 | 1,705 | 1/21/2024 |
8.0.2 | 5,093 | 1/4/2024 |
8.0.1 | 1,288 | 11/23/2023 |
8.0.0 | 1,374 | 11/15/2023 |
7.2.4 | 1,099 | 7/23/2023 |
7.2.3 | 407 | 7/20/2023 |
7.2.2 | 1,012 | 6/21/2023 |
7.2.1 | 1,213 | 4/29/2023 |
7.2.0 | 1,197 | 4/25/2023 |
7.1.3 | 3,239 | 4/13/2023 |
7.1.2 | 1,467 | 3/16/2023 |
7.1.1 | 1,963 | 2/27/2023 |
7.1.0 | 2,901 | 1/18/2023 |
7.0.5 | 3,908 | 12/22/2022 |
7.0.4 | 618 | 12/13/2022 |
7.0.3 | 3,271 | 12/5/2022 |
7.0.2 | 1,092 | 11/15/2022 |
7.0.1 | 1,020 | 11/12/2022 |
7.0.0 | 773 | 11/9/2022 |
6.1.8 | 5,116 | 10/12/2022 |
6.1.7 | 13,766 | 9/20/2022 |
6.1.6 | 7,406 | 9/15/2022 |
6.1.5 | 4,221 | 7/30/2022 |
6.1.4 | 4,324 | 6/30/2022 |
6.1.3 | 4,309 | 6/15/2022 |
6.1.2 | 5,127 | 6/7/2022 |
6.1.1 | 1,005 | 6/4/2022 |
6.1.0 | 1,017 | 6/4/2022 |
6.0.34 | 981 | 6/4/2022 |
6.0.33 | 15,825 | 5/28/2022 |
6.0.32 | 3,576 | 5/27/2022 |
6.0.31 | 1,024 | 5/27/2022 |
6.0.29 | 8,028 | 5/10/2022 |
6.0.28 | 2,781 | 5/5/2022 |
6.0.27 | 1,757 | 4/20/2022 |
6.0.26 | 1,861 | 4/20/2022 |
6.0.25 | 1,030 | 4/19/2022 |
6.0.23 | 3,280 | 4/11/2022 |
6.0.22 | 1,000 | 4/11/2022 |
6.0.20 | 1,039 | 4/10/2022 |
6.0.19 | 4,473 | 3/24/2022 |
6.0.18 | 1,942 | 2/17/2022 |
6.0.14 | 1,268 | 12/17/2021 |
6.0.13 | 550 | 12/14/2021 |
6.0.11 | 548 | 12/13/2021 |
6.0.8 | 579 | 12/13/2021 |
6.0.6 | 590 | 12/13/2021 |
6.0.4 | 615 | 12/13/2021 |
6.0.2 | 778 | 12/12/2021 |