Pervaxis.Core.Resilience 1.6.0

dotnet add package Pervaxis.Core.Resilience --version 1.6.0
                    
NuGet\Install-Package Pervaxis.Core.Resilience -Version 1.6.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="Pervaxis.Core.Resilience" Version="1.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pervaxis.Core.Resilience" Version="1.6.0" />
                    
Directory.Packages.props
<PackageReference Include="Pervaxis.Core.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 Pervaxis.Core.Resilience --version 1.6.0
                    
#r "nuget: Pervaxis.Core.Resilience, 1.6.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.
#:package Pervaxis.Core.Resilience@1.6.0
                    
#: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=Pervaxis.Core.Resilience&version=1.6.0
                    
Install as a Cake Addin
#tool nuget:?package=Pervaxis.Core.Resilience&version=1.6.0
                    
Install as a Cake Tool

Pervaxis.Core.Resilience

Pre-configured Polly v8 resilience pipelines for retry, circuit breaker, and timeout. Implements Section 14 of the Pervaxis Platform Spec.

Installation

dotnet add package Pervaxis.Core.Resilience

Registration

builder.Services.AddPervaxisResilience();

Optionally configure via appsettings.json:

{
  "Pervaxis": {
    "Resilience": {
      "Retry": {
        "MaxAttempts": 3,
        "InitialDelay": "00:00:01",
        "MaxDelay": "00:00:30",
        "UseJitter": true
      },
      "CircuitBreaker": {
        "FailureRatio": 0.5,
        "SamplingDuration": "00:00:30",
        "MinimumThroughput": 10,
        "BreakDuration": "00:01:00"
      },
      "Timeout": {
        "TimeoutDuration": "00:00:30"
      }
    }
  }
}

Named Pipelines

Three pipelines are registered and available by name:

Pipeline Name Use Case Default Tuning
pervaxis-default General service calls MaxAttempts=3, Timeout=30s
pervaxis-messaging SQS / EventBridge MaxAttempts=5, MaxDelay=60s
pervaxis-http Outbound HTTP MaxAttempts=3, Timeout=30s

Usage

public class OrderService(ResiliencePipelineProvider<string> pipelineProvider)
{
    public async Task<Order> GetOrderAsync(string id, CancellationToken ct)
    {
        var pipeline = pipelineProvider.GetPipeline(
            PervaxisResiliencePipelineNames.Default);

        return await pipeline.ExecuteAsync(
            async token => await _repository.GetByIdAsync(id, token), ct);
    }
}

Pipeline Names

// Use constants — never hardcode strings
PervaxisResiliencePipelineNames.Default    // "pervaxis-default"
PervaxisResiliencePipelineNames.Messaging  // "pervaxis-messaging"
PervaxisResiliencePipelineNames.Http       // "pervaxis-http"

Pervaxis Platform · Clarivex Technologies · https://clarivex.tech

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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 (1)

Showing the top 1 NuGet packages that depend on Pervaxis.Core.Resilience:

Package Downloads
Pervaxis.Genesis.Base

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.6.0 982 6/6/2026