You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.
Polly v5.9.0 is published. PR will follow to update HttpClientFactory to reference Polly v5.9.0.
TL;DR Polly v5.9.0 includes some deprecations of APIs we will rationalise/rename in Polly v6.0. None of these changes affect HttpClientFactory at 2.1, but adopting Polly v5.9.0 in HttpClientFactory now, before ASP.NET Core 2.1 RTM, avoids any delta in the wider Polly experience for HttpClientFactory users between ASP.NET Core 2.1 and v-next.
Per semver and ASP.NET Engineering Guidelines, Polly v5.9.0 adds the replacement APIs (where relevant) and uses [Obsolete("with an explanation here of the alternative API to be used, where relevant")] to deprecate the APIs which will be removed at Polly v6.0.
Principal changes with relevance to HttpClientFactory
No impact for HttpClientFactory or consumers of HttpClientFactory as PolicyHttpMessageHandlerabstracts away the policy.ExecuteAsync(...) call in any case.
We have rarely made breaking changes in Polly. We are taking the opportunity of a v6.0 to rationalise and clarify two sections of the API. Getting these changes into HttpClientFactory now avoids delta in experience for users after ASP.NET Core 2.1.
Polly v5.9.0 is published. PR will follow to update HttpClientFactory to reference Polly v5.9.0.
TL;DR Polly v5.9.0 includes some deprecations of APIs we will rationalise/rename in Polly v6.0. None of these changes affect
HttpClientFactory
at 2.1, but adopting Polly v5.9.0 in HttpClientFactory now, before ASP.NET Core 2.1 RTM, avoids any delta in the wider Polly experience for HttpClientFactory users between ASP.NET Core 2.1 and v-next.Per semver and ASP.NET Engineering Guidelines, Polly v5.9.0 adds the replacement APIs (where relevant) and uses
[Obsolete("with an explanation here of the alternative API to be used, where relevant")]
to deprecate the APIs which will be removed at Polly v6.0.Principal changes with relevance to HttpClientFactory
Polly v5.8.0 -> v5.9.0:
[1] rationalises Execute/Async(,...) overloads by deprecating legacy/little-used and anomalous overloads.
HttpClientFactory
or consumers ofHttpClientFactory
asPolicyHttpMessageHandler
abstracts away thepolicy.ExecuteAsync(...)
call in any case.[2] clarifies naming of Polly telemetry properties in preparation for richer telemetry/logging from Polly executions.
HttpClientFactory
as consumption of these properties for logging is not part of ASP.NET Core 2.1 release.[3] improves syntax for the edge case where users configure a non-generic
Policy
such asPolicy.TimeoutAsync(10);
but wish to use it withHttpClientFactory
; for HttpClientFactory the decision was to accept genericIAsyncPolicy<HttpResponseMessage>
only.Should further detail be required, every change in Polly v5.9.0 is milestone-tagged here and here.
The text was updated successfully, but these errors were encountered: