Fluxera.Extensions.Http
7.1.2
Prefix Reserved
See the version list below for details.
dotnet add package Fluxera.Extensions.Http --version 7.1.2
NuGet\Install-Package Fluxera.Extensions.Http -Version 7.1.2
<PackageReference Include="Fluxera.Extensions.Http" Version="7.1.2" />
paket add Fluxera.Extensions.Http --version 7.1.2
#r "nuget: Fluxera.Extensions.Http, 7.1.2"
// Install Fluxera.Extensions.Http as a Cake Addin #addin nuget:?package=Fluxera.Extensions.Http&version=7.1.2 // Install Fluxera.Extensions.Http as a Cake Tool #tool nuget:?package=Fluxera.Extensions.Http&version=7.1.2
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 inserting seed data into 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 | 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 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. |
-
net7.0
- Fluxera.Enumeration.SystemTextJson (>= 7.1.2)
- Fluxera.Extensions.Common (>= 7.1.2)
- Fluxera.Extensions.Http.Abstractions (>= 7.1.2)
- Fluxera.StronglyTypedId.SystemTextJson (>= 7.1.3)
- Fluxera.ValueObject.SystemTextJson (>= 7.1.2)
- JetBrains.Annotations (>= 2022.3.1)
- Microsoft.Extensions.DependencyInjection (>= 7.0.0)
- Microsoft.Extensions.Http (>= 7.0.0)
- Microsoft.Extensions.Http.Polly (>= 7.0.4)
- Microsoft.Extensions.Logging (>= 7.0.0)
- Microsoft.Extensions.Options (>= 7.0.1)
- System.Text.Json (>= 7.0.2)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Fluxera.Extensions.Http:
Package | Downloads |
---|---|
Fluxera.Extensions.OData
The custom extensions for odata client. |
|
Fluxera.Extensions.Hosting.Modules.HttpClient
A module that enables HTTP client services. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
9.0.2 | 53 | 11/16/2024 |
9.0.1 | 34 | 11/14/2024 |
9.0.0 | 33 | 11/14/2024 |
8.3.4 | 96 | 11/1/2024 |
8.3.3 | 91 | 7/9/2024 |
8.3.2 | 145 | 6/12/2024 |
8.3.1 | 122 | 6/2/2024 |
8.3.0 | 121 | 5/26/2024 |
8.2.1 | 105 | 5/24/2024 |
8.2.0 | 316 | 4/24/2024 |
8.1.0 | 310 | 4/18/2024 |
8.0.7 | 240 | 4/13/2024 |
8.0.6 | 128 | 4/13/2024 |
8.0.5 | 177 | 3/19/2024 |
8.0.4 | 328 | 2/22/2024 |
8.0.3 | 266 | 1/21/2024 |
8.0.2 | 450 | 1/4/2024 |
8.0.1 | 242 | 11/23/2023 |
8.0.0 | 195 | 11/15/2023 |
7.2.4 | 258 | 7/23/2023 |
7.2.3 | 202 | 7/20/2023 |
7.2.2 | 201 | 6/21/2023 |
7.2.1 | 229 | 4/29/2023 |
7.2.0 | 236 | 4/25/2023 |
7.1.3 | 299 | 4/13/2023 |
7.1.2 | 305 | 3/16/2023 |
7.1.1 | 347 | 2/27/2023 |
7.1.0 | 405 | 1/18/2023 |
7.0.5 | 468 | 12/22/2022 |
7.0.4 | 343 | 12/13/2022 |
7.0.3 | 410 | 12/5/2022 |
7.0.2 | 399 | 11/15/2022 |
7.0.1 | 556 | 11/12/2022 |
7.0.0 | 585 | 11/9/2022 |
6.1.8 | 864 | 10/12/2022 |
6.1.7 | 1,284 | 9/20/2022 |
6.1.6 | 1,211 | 9/15/2022 |
6.1.5 | 842 | 7/30/2022 |
6.1.4 | 888 | 6/30/2022 |
6.1.3 | 868 | 6/15/2022 |
6.1.2 | 899 | 6/7/2022 |
6.1.1 | 721 | 6/4/2022 |
6.1.0 | 723 | 6/4/2022 |
6.0.34 | 742 | 6/4/2022 |
6.0.33 | 1,072 | 5/28/2022 |
6.0.32 | 849 | 5/27/2022 |
6.0.31 | 776 | 5/27/2022 |
6.0.29 | 1,220 | 5/10/2022 |
6.0.28 | 877 | 5/5/2022 |
6.0.27 | 793 | 4/20/2022 |
6.0.26 | 761 | 4/20/2022 |
6.0.25 | 777 | 4/19/2022 |
6.0.23 | 760 | 4/11/2022 |
6.0.22 | 760 | 4/11/2022 |