Polly.Net40Async 5.0.3

Polly.Net40Async is a version of the Polly library for .NET 4.0 with async support via Microsoft.Bcl.Async.  Polly allows developers to express resilience policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner.

There is a newer version of this package available.
See the version list below for details.
Install-Package Polly.Net40Async -Version 5.0.3
dotnet add package Polly.Net40Async --version 5.0.3
<PackageReference Include="Polly.Net40Async" Version="5.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Polly.Net40Async --version 5.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Polly.Net40Async, 5.0.3"
For F# scripts that support #r syntax, copy this into the source code to reference the package.
// Install Polly.Net40Async as a Cake Addin
#addin nuget:?package=Polly.Net40Async&version=5.0.3

// Install Polly.Net40Async as a Cake Tool
#tool nuget:?package=Polly.Net40Async&version=5.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

v5.0 is a major release with significant new resilience policies: Timeout; Bulkhead Isolation; Fallback; and PolicyWrap.  See release notes back to v5.0.0 for full details.

    5.0.3 RTM
    - Refine implementation of cancellable synchronous WaitAndRetry
    - Minor breaking change: Where a user delegate does not observe cancellation, Polly will now honour the delegate's outcome rather than throw for the unobserved cancellation (issue 188).

    5.0.2 alpha
    - Add full specs support for .NET40.
    - Fix issue 179: Make Net4.0 async implementation for Bulkhead truly async.

    5.0.1 alpha
    - (Add a .NETStandard1.0 target.)

    5.0.0 alpha
    A major release, adding significant new resilience policies:
    - Timeout policy: allows timing out any execution
    - Bulkhead isolation policy: limits the resources consumable by governed actions, such that a faulting channel cannot cause cascading failures.
    - Fallback policy: provides for a fallback execution or value, in case of overall failure
    - PolicyWrap: allows flexibly combining Policy instances of any type, to form an overall resilience strategy.

    Other changes include:
    - Add PolicyKeys and context to all policy executions, for logging and to support later introduction of policy events and metrics.
    - Add CancellationToken support to synchronous executions.
    - Add some missing ExecuteAndCapture/Async overloads.
    - Remove invalid ExecuteAsync overloads taking (but not making use of) a CancellationToken
    - Provide .NET4.0 support uniquely through Polly.NET40Async package
    - Retire ContextualPolicy (not part of documented API; support now in Policy base class)
    - Discontinue .NET3.5 support

     - Added ability for policies to handle return results.  Optimised circuit-breaker hot path.  Fixed circuit-breaker threshold bug.  

     - Added overloads to WaitAndRetry and WaitAndRetryAsync methods that accept an onRetry delegate which includes the attempt count.

     - Cleaned up new Polly.Net40Async NuGet package, removing Polly.dll and unused framework folders.

     - 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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Polly.Net40Async:

Package Downloads
Polly.Caching.MemoryCache is a plug-in for the .NET OSS resilience library Polly, supporting System.Runtime.Caching.MemoryCache as a provider for Polly's CachePolicy.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
5.9.0 18,355 4/9/2018
5.8.0 6,382 1/31/2018
5.7.0 1,232 1/6/2018
5.6.1 1,716 11/29/2017
5.6.0 590 11/27/2017
5.5.0 1,187 11/3/2017
5.4.0 531 11/1/2017
5.3.1 59,514 8/6/2017
5.3.0 565 7/27/2017
5.2.0 3,656 6/28/2017
5.1.1-v5-x-cachealpha0001 510 6/2/2017
5.1.0 2,039 5/4/2017
5.0.6 52,713 2/11/2017
5.0.5 589 2/4/2017
5.0.4-pre 942 1/17/2017
5.0.3 610 1/6/2017
5.0.2-v5-0-alpha0001 628 11/22/2016
5.0.1-v5-0-alpha0001 598 10/25/2016
4.3.0 15,172 6/30/2016
4.2.4 1,418 6/17/2016
4.2.3 812 6/7/2016
4.2.2 781 6/2/2016
Show less