Polly 4.2.1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Polly --version 4.2.1
NuGet\Install-Package Polly -Version 4.2.1
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="Polly" Version="4.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Polly --version 4.2.1
#r "nuget: Polly, 4.2.1"
#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.
// Install Polly as a Cake Addin
#addin nuget:?package=Polly&version=4.2.1

// Install Polly as a Cake Tool
#tool nuget:?package=Polly&version=4.2.1

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.

Product Compatible and additional computed target framework versions.
.NET Framework net35 is compatible.  net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
.NETPlatform dotnet is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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.

NuGet packages (2.3K)

Showing the top 5 NuGet packages that depend on Polly:

Package Downloads
Microsoft.Extensions.Http.Polly The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

The HttpClient factory is a pattern for configuring and retrieving named HttpClients in a composable way. This package integrates IHttpClientFactory with the Polly library, to add transient-fault-handling and resiliency through fluent policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback. This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/e1ad9117a4dac3b0f5f2a7e2b10b43b7016379b9

Polly.Extensions.Http The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Polly.Extensions.Http is an extensions package containing opinionated convenience methods for configuring Polly policies to handle transient faults typical of calls through HttpClient.

Polly.Caching.Memory The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Polly.Caching.Memory is a plug-in for the .NET OSS resilience library Polly, supporting Microsoft.Extensions.Caching.Memory.MemoryCache as a provider for Polly's CachePolicy.

SheshaMobile.Core

Common application functionality and features to be shared across the framework

Marten

.NET Transactional Document DB and Event Store on PostgreSQL

GitHub repositories (214)

Showing the top 5 popular GitHub repositories that depend on Polly:

Repository Stars
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
abpframework/abp
Open Source Web Application Framework for ASP.NET Core. Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET and the ASP.NET Core platforms. Provides the fundamental infrastructure, production-ready startup templates, application modules, UI themes, tooling, guides and documentation.
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
Jackett/Jackett
API Support for your favorite torrent trackers
kgrzybek/modular-monolith-with-ddd
Full Modular Monolith application with Domain-Driven Design approach.
Version Downloads Last updated
8.3.1 830,408 3/6/2024
8.3.0 1,977,595 2/5/2024
8.2.1 3,022,137 1/5/2024
8.2.0 5,997,503 11/14/2023
8.1.0 1,775,701 10/31/2023
8.0.0 5,059,506 9/28/2023
8.0.0-beta.2 37,022 9/8/2023
8.0.0-beta.1 7,331 8/31/2023
8.0.0-alpha.9 2,381 8/30/2023
8.0.0-alpha.8 28,815 8/8/2023
8.0.0-alpha.7 9,881 7/26/2023
8.0.0-alpha.6 26,408 7/14/2023
8.0.0-alpha.5 12,442 7/3/2023
8.0.0-alpha.4 3,195 6/26/2023
8.0.0-alpha.3 558 6/23/2023
8.0.0-alpha.2 6,445 6/21/2023
8.0.0-alpha.1 3,808 6/15/2023
7.2.4 21,985,973 6/14/2023
7.2.3 124,276,401 1/17/2022
7.2.2 94,708,713 4/11/2021
7.2.1 72,530,697 5/2/2020
7.2.0 39,858,720 11/27/2019
7.1.1 15,532,676 9/2/2019
7.1.0 90,987,527 3/13/2019
7.0.3 1,708,040 2/21/2019
7.0.2 950,816 2/11/2019
7.0.1 1,025,618 2/9/2019
6.1.2 10,967,273 11/27/2018
6.1.1 1,000,193 11/12/2018
6.1.0 9,369,183 7/15/2018
6.0.1 22,492,029 5/6/2018
6.0.0-v6alpha0001 9,812 5/3/2018
5.9.0 5,388,883 4/9/2018
5.8.0 4,531,464 1/31/2018
5.7.0 824,417 1/6/2018
5.6.1 1,538,721 11/29/2017
5.6.0 96,560 11/27/2017
5.5.0 1,147,500 11/3/2017
5.4.0 142,533 11/1/2017
5.3.1 3,790,440 8/6/2017
5.3.0 250,259 7/27/2017
5.2.0 574,173 6/28/2017
5.1.1-v5-x-cachealpha0001 55,752 6/2/2017
5.1.0 1,009,516 5/4/2017
5.0.6 995,014 2/11/2017
5.0.5 480,655 2/4/2017
5.0.3 800,158 1/6/2017
5.0.2-v5-0-alpha0001 18,636 11/22/2016
5.0.1-v5-0-alpha0001 20,103 10/25/2016
4.5.0-beta-netstandar-0001 30,108 9/6/2016
4.3.0 2,169,663 6/30/2016
4.2.4 50,892 6/17/2016
4.2.3 42,301 6/7/2016
4.2.2 18,796 6/2/2016
4.2.1 136,094 5/26/2016
4.2.0 207,139 4/14/2016
4.1.2 279,356 3/17/2016
4.1.1 35,220 3/11/2016
4.1.0 9,010 3/10/2016
4.0.0 87,013 2/18/2016
3.0.0 84,893 1/11/2016
2.2.7 67,639 1/1/2016
2.2.6 9,301 12/30/2015
2.2.5 17,202 12/28/2015
2.2.4 59,171 12/3/2015
2.2.3 216,665 8/9/2015
2.2.2 123,917 6/2/2015
2.2.1 85,109 2/15/2015
2.2.0 41,870 1/25/2015
2.1.0 29,814 11/28/2014
2.0.0 33,689 3/13/2014
1.1.0 10,432 6/16/2013
1.0.0 90,927 5/5/2013

    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