Esempio n. 1
0
 protected Task CreateApiDelay(IBigCommerceRateLimits limits, CancellationToken token)
 {
     return(limits.IsUnlimitedCallsCount ? Task.FromResult(0) : Task.Delay(limits.LimitTimeResetMs != -1 ? TimeSpan.FromMilliseconds(limits.LimitTimeResetMs) : this.DefaultApiDelay, token));
 }
Esempio n. 2
0
 public BigCommerceResponse(T response, IBigCommerceRateLimits limits)
 {
     this.Response = response;
     this.Limits   = limits;
 }
Esempio n. 3
0
 protected Task CreateApiDelay(IBigCommerceRateLimits limits)
 {
     return(this.CreateApiDelay(limits, CancellationToken.None));
 }