Polly 4.3.0

Polly is a .NET 3.5 / 4.0 / 4.5 / PCL library (Profile 259) that allows developers to express transient exception and fault handling policies such as Retry, Retry Forever, Wait and Retry or Circuit Breaker in a fluent manner.

There is a newer version of this package available.
See the version list below for details.
Install-Package Polly -Version 4.3.0
dotnet add package Polly --version 4.3.0
<PackageReference Include="Polly" Version="4.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Polly --version 4.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

    4.3.0
    ---------------------
    - Added ability for policies to handle return results.  Optimised circuit-breaker hot path.  Fixed circuit-breaker threshold bug.  
    
    4.2.4
    ---------------------
    - Added overloads to WaitAndRetry and WaitAndRetryAsync methods that accept an onRetry delegate which includes the attempt count.
    
    4.2.3
    ---------------------
    - Cleaned up new Polly.Net40Async NuGet package, removing Polly.dll and unused framework folders.
    
    4.2.2
    ---------------------
    - Add new Polly.Net40Async project supporting async for .NET40 via Microsoft.Bcl.Async.  This is available as separate Nuget packages Polly.Net40Async and Polly.Net40Async-signed.

    4.2.1
    ---------------------
    - Allowed async onRetry delegates to async retry policies.

    4.2.0
    ---------------------
    - Added AdvancedCircuitBreaker - Thanks to @reisenberger and @kristianhald
    
    4.1.2
    ---------------------
    - Fixed an issue with the onReset delegate of the CircuitBreaker.
    
    4.1.1
    ---------------------
    - Add ExecuteAndCapture support with arbitrary context data - Thanks to @reisenberger
    
    4.1.0
    ---------------------
    - Add Wait and retry forever policy - Thanks to @nedstoyanov
    - Remove time-limit on CircuitBreaker state-change delegates - Thanks to @reisenberger
    
    4.0.0
    ---------------------
    - Add async support and circuit-breaker support for ContextualPolicy
    - Add manual control of circuit-breaker (reset and manual circuit isolation)
    - Add public reporting of circuit-breaker state, for health/performance monitoring
    - Add delegates on changes of circuit state - Thanks to @reisenberger
    
    3.0.0
    ---------------------
    - Add cancellation support for all async Policy execution - Thanks to @reisenberger
    
    2.2.7
    ---------------------
    - Fixes an issue where continueOnCapturedContext needed to be specified in two places (on action execution and Policy configuration), when wanting to flow async action execution on the captured context - Thanks to @reisenberger
    - Fixes excess line ending issues
    
    2.2.6
    ---------------------
    - Async sleep fix, plus added continueOnCapturedContext parameter on async methods to control whether continuation and retry will run on captured synchronization context - Thanks to @yevhen
    
    2.2.5
    ---------------------
    - Policies with a retry count of zero are now allowed
    
    2.2.4
    ---------------------
    - Add .NET Core support
    
    2.2.3
    ---------------------
    - Fix PCL implementation of `SystemClock.Reset`
    - Added ability to capture the results of executing a policy via `ExecuteAndCapture`
    
    2.2.2
    ---------------------
    - Added extra `NotOnCapturedContext` call to prevent potential deadlocks when blocking on asynchronous calls
    
    2.2.1
    ---------------------
    - Replaced non-blocking sleep implementation with a blocking one for PCL
    
    2.2.0
    ---------------------
    - Added Async Support (PCL)
    - PCL Profile updated from Profile78 ->  Profile 259
    - Added missing WaitAndRetryAsync overload
    
    2.1.0
    ---------------------
    - Added Async Support (.NET Framework 4.5 Only)
    
    2.0.0
    ---------------------
    - Added Portable Class Library
    - The "Polly" NuGet package is now no longer strongly named. The strongly named NuGet package is now "Polly-Signed"
    
    1.1.0
    ---------------------
    - Added additional overloads to Retry
    - Allow arbitrary data to be passed to policy execution

Showing the top 10 GitHub repositories that depend on Polly:

Repository Stars
dotnet-architecture/eShopOnContainers
Cross-platform .NET sample microservices and container based application that runs on Linux Windows and macOS. Powered by .NET Core 3.0, Docker Containers and Azure Kubernetes Services. Supports Visual Studio, VS for Mac and CLI based environments with Docker CLI, dotnet CLI, VS Code or any other code editor.
dotnet/orleans
Orleans is a cross-platform framework for building distributed applications with .NET
microsoft/ailab
Experience, Learn and Code the latest breakthrough innovations with Microsoft AI
ThreeMammals/Ocelot
.NET core API Gateway
dotnetcore/surging
Surging is a micro-service engine that provides a lightweight, high-performance, modular RPC request pipeline. The service engine supports http, TCP, WS,Grpc, Mqtt, UDP, and DNS protocols. It uses ZooKeeper and Consul as a registry, and integrates it. Hash, random, polling, Fair Polling as a load balancing algorithm, built-in service governance to ensure reliable RPC communication, the engine contains Diagnostic, link tracking for protocol and middleware calls, and integration SkyWalking Distributed APM
JosefNemec/Playnite
Open source video game library manager with support for 3rd party libraries like Steam, GOG, Origin, Battle.net and Uplay. Including game emulation support, providing one unified interface for your games.
tidusjar/Ombi
Want a Movie or TV Show on Plex or Emby? Use Ombi!
Azure/azure-sdk-for-net
This repository is intended for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/en-us/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
BrighterCommand/Brighter
Command Dispatcher, Processor, and Distributed Task Queue
vietnam-devs/coolstore-microservices
A Kubernetes-based microservices application on service mesh

Version History

Version Downloads Last updated
7.2.0 26,429 11/27/2019
7.1.1 1,145,325 9/2/2019
7.1.0 4,201,892 3/13/2019
7.0.3 430,913 2/21/2019
7.0.2 257,410 2/11/2019
7.0.1 37,646 2/9/2019
6.1.2 2,179,599 11/27/2018
6.1.1 450,310 11/12/2018
6.1.0 3,058,458 7/15/2018
6.0.1 4,821,126 5/6/2018
6.0.0-v6alpha0001 4,368 5/3/2018
5.9.0 1,225,856 4/9/2018
5.8.0 1,588,408 1/31/2018
5.7.0 365,705 1/6/2018
5.6.1 541,213 11/29/2017
5.6.0 65,137 11/27/2017
5.5.0 434,463 11/3/2017
5.4.0 46,889 11/1/2017
5.3.1 1,049,462 8/6/2017
5.3.0 131,941 7/27/2017
5.2.0 239,685 6/28/2017
5.1.1-v5-x-cachealpha0001 50,981 6/2/2017
5.1.0 467,386 5/4/2017
5.0.6 491,894 2/11/2017
5.0.5 240,053 2/4/2017
5.0.3 167,557 1/6/2017
5.0.2-v5-0-alpha0001 12,623 11/22/2016
5.0.1-v5-0-alpha0001 13,957 10/25/2016
4.5.0-beta-netstandar-0001 24,276 9/6/2016
4.3.0 1,226,991 6/30/2016
4.2.4 27,460 6/17/2016
4.2.3 25,230 6/7/2016
4.2.2 10,096 6/2/2016
4.2.1 77,110 5/26/2016
4.2.0 98,626 4/14/2016
4.1.2 240,433 3/17/2016
4.1.1 22,570 3/11/2016
4.1.0 4,607 3/10/2016
4.0.0 61,626 2/18/2016
3.0.0 52,458 1/11/2016
2.2.7 22,939 1/1/2016
2.2.6 4,964 12/30/2015
2.2.5 11,951 12/28/2015
2.2.4 35,714 12/3/2015
2.2.3 126,595 8/9/2015
2.2.2 48,225 6/2/2015
2.2.1 42,853 2/15/2015
2.2.0 19,815 1/25/2015
2.1.0 21,540 11/28/2014
2.0.0 20,072 3/13/2014
1.1.0 6,190 6/16/2013
1.0.0 5,424 5/5/2013
Show less