CodeDesignPlus.Net.Resilience 1.0.0-beta.13881

This is a prerelease version of CodeDesignPlus.Net.Resilience.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package CodeDesignPlus.Net.Resilience --version 1.0.0-beta.13881
                    
NuGet\Install-Package CodeDesignPlus.Net.Resilience -Version 1.0.0-beta.13881
                    
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="CodeDesignPlus.Net.Resilience" Version="1.0.0-beta.13881" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeDesignPlus.Net.Resilience" Version="1.0.0-beta.13881" />
                    
Directory.Packages.props
<PackageReference Include="CodeDesignPlus.Net.Resilience" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeDesignPlus.Net.Resilience --version 1.0.0-beta.13881
                    
#r "nuget: CodeDesignPlus.Net.Resilience, 1.0.0-beta.13881"
                    
#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.
#:package CodeDesignPlus.Net.Resilience@1.0.0-beta.13881
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeDesignPlus.Net.Resilience&version=1.0.0-beta.13881&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=CodeDesignPlus.Net.Resilience&version=1.0.0-beta.13881&prerelease
                    
Install as a Cake Tool

CodeDesignPlus.Net.Resilience

Quality Gate Status Bugs Code Smells Coverage Duplicated Lines (%) Vulnerabilities

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: ResilienceOptions class 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.13976 0 11/6/2026
1.0.0-beta.13968 0 11/6/2026
1.0.0-beta.13957 0 11/6/2026
1.0.0-beta.13947 49 11/4/2026
1.0.0-beta.13924 45 11/4/2026
1.0.0-beta.13919 46 11/4/2026
1.0.0-beta.13912 51 11/4/2026
1.0.0-beta.13889 64 11/2/2026
1.0.0-beta.13881 74 11/1/2026
1.0.0-beta.13868 69 10/30/2026
1.0.0-beta.13861 60 10/29/2026
1.0.0-beta.13855 74 10/28/2026
1.0.0-beta.13836 62 10/28/2026
1.0.0-beta.13815 62 10/25/2026
1.0.0-beta.13767 64 10/21/2026
1.0.0-beta.13752 63 10/21/2026
1.0.0-beta.13740 65 10/20/2026
1.0.0-beta.13714 74 10/19/2026
1.0.0-beta.13683 64 10/15/2026
1.0.0-beta.13676 67 10/15/2026
Loading failed