nozzlegear / ShopifySharp

ShopifySharp is a .NET library that helps developers easily authenticate with and manage Shopify stores.
https://nozzlegear.com/shopify-development-handbook
MIT License
764 stars 313 forks source link

feature: Add support for retrying first failure immediately in ExponentialRetryPolicy with `ExponentialRetryPolicyOptions.FirstRetryIsImmediate` #1070

Closed nozzlegear closed 6 months ago

nozzlegear commented 6 months ago

This pull request adds a new option to the ExponentialRetryPolicyOptions named FirstRetryIsImmediate. When true, each request will be retried immediately if it fails before the exponential delay begins. The default value for the option is false.

There's also a small "feature" in this PR that enables cancellation token support for CloneableRequestMessage.CloneAsync().