Polly, HttpClientFactory and the Policy Registry - no dogma blog The Polly team is kick-starting the Polly.Contrib with: blank templates for authoring your own custom policy - these ready-made repos integrate to the latest Polly and have built-in build-script packaging to nuget; an example custom policy to capture execution timings; an example custom policy simply to log exceptions/faults and rethrow. Retries using Polly in .NET Core. With a Context object created, we can go ahead and pass it into the policy execution. We can then store a reference to the CancellationTokenSource externally and call it’s Cancel method, or access the named token inside our retry policy. A simple example.
Retry Transient Failures Using SqlClient / ADO.NET With Polly Using Execution Context in Polly - The Polly Project Retry Pattern using Polly in C# - Taswar Bhatti