![]() |
VOOZH | about |
dotnet add package Pervaxis.Core.Resilience --version 1.6.0
NuGet\Install-Package Pervaxis.Core.Resilience -Version 1.6.0
<PackageReference Include="Pervaxis.Core.Resilience" Version="1.6.0" />
<PackageVersion Include="Pervaxis.Core.Resilience" Version="1.6.0" />Directory.Packages.props
<PackageReference Include="Pervaxis.Core.Resilience" />Project file
paket add Pervaxis.Core.Resilience --version 1.6.0
#r "nuget: Pervaxis.Core.Resilience, 1.6.0"
#:package Pervaxis.Core.Resilience@1.6.0
#addin nuget:?package=Pervaxis.Core.Resilience&version=1.6.0Install as a Cake Addin
#tool nuget:?package=Pervaxis.Core.Resilience&version=1.6.0Install as a Cake Tool
Pre-configured Polly v8 resilience pipelines for retry, circuit breaker, and timeout. Implements Section 14 of the Pervaxis Platform Spec.
dotnet add package Pervaxis.Core.Resilience
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"
}
}
}
}
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 |
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);
}
}
// 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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Pervaxis.Core.Resilience:
| Package | Downloads |
|---|---|
|
Pervaxis.Genesis.Base
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.6.0 | 924 | 6/6/2026 |