CodeDesignPlus.Net.Resilience
1.0.0-beta.12897
See the version list below for details.
dotnet add package CodeDesignPlus.Net.Resilience --version 1.0.0-beta.12897
NuGet\Install-Package CodeDesignPlus.Net.Resilience -Version 1.0.0-beta.12897
<PackageReference Include="CodeDesignPlus.Net.Resilience" Version="1.0.0-beta.12897" />
<PackageVersion Include="CodeDesignPlus.Net.Resilience" Version="1.0.0-beta.12897" />
<PackageReference Include="CodeDesignPlus.Net.Resilience" />
paket add CodeDesignPlus.Net.Resilience --version 1.0.0-beta.12897
#r "nuget: CodeDesignPlus.Net.Resilience, 1.0.0-beta.12897"
#:package CodeDesignPlus.Net.Resilience@1.0.0-beta.12897
#addin nuget:?package=CodeDesignPlus.Net.Resilience&version=1.0.0-beta.12897&prerelease
#tool nuget:?package=CodeDesignPlus.Net.Resilience&version=1.0.0-beta.12897&prerelease
CodeDesignPlus.Net.Resilience
Description
The CodeDesignPlus.Net.Resilience library provides transversal resilience patterns (retry, circuit breaker, timeout) for HTTP clients and soft error retry pipelines with OpenTelemetry integration. Built on top of Microsoft.Extensions.Http.Resilience (Polly 8).
Table of Contents
About The Project
The CodeDesignPlus.Net.Resilience library provides a standardized way to add resilience patterns to HTTP clients across all CodeDesignPlus microservices.
Key Features
- Transport Resilience: Retry with exponential backoff + circuit breaker for HTTP 5xx and timeouts via
AddResiliencePolicies(). - Soft Error Retry: Body-inspection retry pipeline for cases where HTTP 200 contains an application-level error (e.g., payment gateway returning
code=ERROR). - OpenTelemetry Integration: Automatic Polly meter and trace source registration via
AddResilience(). - Configurable per Provider:
ResilienceOptionsclass embeddable in any provider-specific options.
Installation
dotnet add package CodeDesignPlus.Net.Resilience
Usage
// Register OTEL telemetry for Polly
services.AddResilience();
// Add transport resilience to a named HttpClient
services.AddHttpClient("PaymentProvider", client =>
{
client.BaseAddress = new Uri("https://api.provider.com");
})
.AddResiliencePolicies(providerOptions.Resilience);
// Build a soft error retry pipeline in your adapter
var pipeline = SoftErrorPipelineFactory.Create(options.Resilience, loggerFactory);
Roadmap
Refer to the roadmap for planned features and improvements.
Contributing
Contributions are welcome! Please read the contributing guidelines before submitting pull requests.
License
Distributed under the LGPL License. See LICENSE.md for more information.
Contact
CodeDesignPlus - support@codedesignplus.com
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net9.0
- CodeDesignPlus.Net.Resilience.Abstractions (>= 1.0.0-beta.12897)
- Microsoft.Extensions.Http.Resilience (>= 10.7.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.17)
- OpenTelemetry.Extensions.Hosting (>= 1.12.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 |
|---|---|---|
| 1.0.0-beta.12898 | 26 | 6/19/2026 |
| 1.0.0-beta.12897 | 35 | 6/19/2026 |