public static IHttpClient AddThrottling( this IHttpClient httpClient, IHttpApiWithThrottling httpApiWithThrottling, IThrottleManager throttleManager) { return(new ThrottlingHttpClient( httpClient, throttleManager.GetSync(httpApiWithThrottling.ThrottlePolicy))); }