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