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