Polly 4.1.0

Polly is a .NET 3.5 / 4.0 / 4.5 / PCL library (Profile 259) that allows developers to express transient exception 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.1.0
dotnet add package Polly --version 4.1.0
<PackageReference Include="Polly" Version="4.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Polly --version 4.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

    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

  • .NETFramework 0.0

    • No dependencies.
  • .NETPlatform 5.0

  • MonoAndroid 0.0

    • No dependencies.
  • MonoTouch 0.0

    • No dependencies.
  • Portable Class Library (.NETFramework 4.5, Windows 8.0, WindowsPhone 8.0, WindowsPhoneApp 8.1)

    • No dependencies.
  • Windows 0.0

    • No dependencies.
  • WindowsPhone 0.0

    • No dependencies.
  • WindowsPhoneApp 0.0

    • No dependencies.
  • Xamarin.iOS 0.0

    • No dependencies.

Showing the top 10 GitHub repositories that depend on Polly:

Repository Stars
dotnet-architecture/eShopOnContainers
Easy to get started sample reference microservice and container based application. Cross-platform on Linux and Windows Docker Containers, powered by .NET Core 2.2, Docker engine and optionally Azure, Kubernetes or Service Fabric. 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 - Distributed Virtual Actor Model
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, 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
Microsoft Azure SDK for .NET
BrighterCommand/Brighter
Command Dispatcher, Processor, and Distributed Task Queue
Wyamio/Wyam
A modular static content and static site generator.

Version History

Version Downloads Last updated
7.1.1 264,151 9/2/2019
7.1.0 3,054,237 3/13/2019
7.0.3 375,515 2/21/2019
7.0.2 209,692 2/11/2019
7.0.1 32,974 2/9/2019
6.1.2 1,864,848 11/27/2018
6.1.1 402,096 11/12/2018
6.1.0 2,756,976 7/15/2018
6.0.1 4,039,863 5/6/2018
6.0.0-v6alpha0001 4,217 5/3/2018
5.9.0 1,069,173 4/9/2018
5.8.0 1,465,993 1/31/2018
5.7.0 345,390 1/6/2018
5.6.1 518,111 11/29/2017
5.6.0 64,085 11/27/2017
5.5.0 411,252 11/3/2017
5.4.0 45,808 11/1/2017
5.3.1 992,124 8/6/2017
5.3.0 127,044 7/27/2017
5.2.0 230,601 6/28/2017
5.1.1-v5-x-cachealpha0001 50,925 6/2/2017
5.1.0 444,593 5/4/2017
5.0.6 474,553 2/11/2017
5.0.5 232,168 2/4/2017
5.0.3 161,716 1/6/2017
5.0.2-v5-0-alpha0001 12,581 11/22/2016
5.0.1-v5-0-alpha0001 13,851 10/25/2016
4.5.0-beta-netstandar-0001 24,118 9/6/2016
4.3.0 1,174,713 6/30/2016
4.2.4 27,041 6/17/2016
4.2.3 23,693 6/7/2016
4.2.2 9,401 6/2/2016
4.2.1 73,754 5/26/2016
4.2.0 94,083 4/14/2016
4.1.2 240,106 3/17/2016
4.1.1 21,299 3/11/2016
4.1.0 4,574 3/10/2016
4.0.0 60,391 2/18/2016
3.0.0 49,766 1/11/2016
2.2.7 22,152 1/1/2016
2.2.6 4,944 12/30/2015
2.2.5 11,598 12/28/2015
2.2.4 34,817 12/3/2015
2.2.3 123,596 8/9/2015
2.2.2 46,799 6/2/2015
2.2.1 41,071 2/15/2015
2.2.0 19,147 1/25/2015
2.1.0 21,220 11/28/2014
2.0.0 19,867 3/13/2014
1.1.0 6,151 6/16/2013
1.0.0 5,159 5/5/2013
Show less