Axion.Extensions.Http.Resilience.DuplicateRequestCollapsing.Caching.Hybrid
9.0.0
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 4.6.2
This package targets .NET Framework 4.6.2. The package is compatible with this framework or higher.
dotnet add package Axion.Extensions.Http.Resilience.DuplicateRequestCollapsing.Caching.Hybrid --version 9.0.0
NuGet\Install-Package Axion.Extensions.Http.Resilience.DuplicateRequestCollapsing.Caching.Hybrid -Version 9.0.0
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="Axion.Extensions.Http.Resilience.DuplicateRequestCollapsing.Caching.Hybrid" Version="9.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Axion.Extensions.Http.Resilience.DuplicateRequestCollapsing.Caching.Hybrid --version 9.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Axion.Extensions.Http.Resilience.DuplicateRequestCollapsing.Caching.Hybrid, 9.0.0"
#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 Axion.Extensions.Http.Resilience.DuplicateRequestCollapsing.Caching.Hybrid as a Cake Addin #addin nuget:?package=Axion.Extensions.Http.Resilience.DuplicateRequestCollapsing.Caching.Hybrid&version=9.0.0 // Install Axion.Extensions.Http.Resilience.DuplicateRequestCollapsing.Caching.Hybrid as a Cake Tool #tool nuget:?package=Axion.Extensions.Http.Resilience.DuplicateRequestCollapsing.Caching.Hybrid&version=9.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Axion.Extensions.Http.Resilience.DuplicateRequestCollapsing.Caching.Hybrid
Collapse concurrent duplicate requests to a single execution Resilience mechanism for HttpClient built on the Polly Caching Strategy that utilizes HybridCache.
Usage
Dependency Injection
services.AddHybrdCache().AddSerializer(HttpResponseMessageHybridCacheSerializer.Instance);
services.AddHttpClient("name")
.AddResilienceHandler(
"name",
(pipeline, handlerContext) =>
pipeline.AddDuplicateRequestCollapsing(new HttpDuplicateRequestCollapsingStrategyOptions()
{
HybridCache = handlerContext.ServiceProvider.GetRequiredService<HybridCache>(),
LockHandleProvider = <CREATE_A_LOCK>,
});
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. |
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6.2
- Axion.Extensions.Http.Resilience.Caching.Hybrid (>= 9.0.0)
- Axion.Extensions.Polly.DuplicateRequestCollapsing.Caching.Hybrid (>= 9.0.0)
- CommunityToolkit.Diagnostics (>= 8.1.0)
- Microsoft.Bcl.Memory (>= 9.0.0)
- Microsoft.Extensions.Http.Resilience (>= 9.0.0)
- System.ValueTuple (>= 4.5.0)
-
net8.0
- Axion.Extensions.Http.Resilience.Caching.Hybrid (>= 9.0.0)
- Axion.Extensions.Polly.DuplicateRequestCollapsing.Caching.Hybrid (>= 9.0.0)
- CommunityToolkit.Diagnostics (>= 8.1.0)
- Microsoft.Extensions.Http.Resilience (>= 9.0.0)
-
net9.0
- Axion.Extensions.Http.Resilience.Caching.Hybrid (>= 9.0.0)
- Axion.Extensions.Polly.DuplicateRequestCollapsing.Caching.Hybrid (>= 9.0.0)
- CommunityToolkit.Diagnostics (>= 8.1.0)
- Microsoft.Extensions.Http.Resilience (>= 9.0.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 |
---|---|---|
9.0.0 | 44 | 12/16/2024 |
9.0.0-preview.9.24556.5.0 | 63 | 12/13/2024 |