Skip to content

Conversation

@Robbie-Microsoft
Copy link
Contributor

@Robbie-Microsoft Robbie-Microsoft commented Apr 11, 2025

.NET's retry policy functionality now aligns with MSAL-Node. This PR was already implemented in MSAL-Node, here.

There are now two retry strategies:
LinearRetryStrategy and ExponentialRetryStrategy

There are now two retry policies, which use the retry strategies:
ImdsRetryPolicy and DefaultRetryPolicy (both ESTS and non-IMDS Managed Identity HttpManagers use DefaultRetryPolicy)

The unit tests in this PR are ported from the MSAL-Node PR:
All retry policy unit tests run "100 times faster" by overriding certain variables; Retry policy tests are no longer "expensive".

@Robbie-Microsoft Robbie-Microsoft marked this pull request as ready for review April 21, 2025 22:04
@Robbie-Microsoft Robbie-Microsoft requested a review from a team as a code owner April 21, 2025 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

6 participants