Microsoft.Identity.Client.OAuth2.Throttling.SingletonThrottlingManager
Throttling is the action through which MSAL blocks applications from making repeated
bad requests to the server. This works by MSAL detecting certain conditions when the server
returns an error. If a similar request is then issued under the same condition, the same
server error is returned by MSAL, without contacting the server.
Throttling occurs in the following conditions:
After receiving an RetryAfter headerAfter receiving 429, 5xx HTTP status.
This class manages the throttling providers and is itself a provider
namespace Microsoft.Identity.Client.OAuth2.Throttling
{
internal class SingletonThrottlingManager : IThrottlingProvider
{
public IEnumerable<IThrottlingProvider> ThrottlingProviders { get; }
public static SingletonThrottlingManager GetInstance();
public void RecordException(AuthenticationRequestParameters requestParams, IReadOnlyDictionary<string, string> bodyParams, MsalServiceException ex);
public void TryThrottle(AuthenticationRequestParameters requestParams, IReadOnlyDictionary<string, string> bodyParams);
public void ResetCache();
}
}