Microsoft.Identity.Client.OAuth2.Throttling.RetryAfterProvider
The Retry-After provider observes all service exceptions from all flows and looks for a header like: RetryAfter X seconds.
It then enforces this header, by throttling for X seconds.
namespace Microsoft.Identity.Client.OAuth2.Throttling
{
internal class RetryAfterProvider : IThrottlingProvider
{
public RetryAfterProvider();
public void RecordException(AuthenticationRequestParameters requestParams, IReadOnlyDictionary<string, string> bodyParams, MsalServiceException ex);
public void ResetCache();
public void TryThrottle(AuthenticationRequestParameters requestParams, IReadOnlyDictionary<string, string> bodyParams);
public static bool TryGetRetryAfterValue(HttpResponseHeaders headers, out TimeSpan retryAfterTimespan);
}
}