public AccountRequestCounter(Account _account, RequestRateLimits requestRateLimits) { account = _account ?? throw new ArgumentNullException(nameof(_account)); minuteCounter = new RequestCounter(); hourCounter = new RequestCounter(); SetLimits(requestRateLimits); }
public AccountWrapper(Account account, RequestRateLimits requestRateLimits) { Account = account ?? throw new ArgumentNullException(nameof(account)); RequestCounter = new AccountRequestCounter(Account, requestRateLimits); }
public void SetLimits(RequestRateLimits requestRateLimits) { this.requestRateLimits = requestRateLimits ?? throw new ArgumentNullException(nameof(requestRateLimits)); }