コード例 #1
0
 public AccountRequestCounter(Account _account, RequestRateLimits requestRateLimits)
 {
     account       = _account ?? throw new ArgumentNullException(nameof(_account));
     minuteCounter = new RequestCounter();
     hourCounter   = new RequestCounter();
     SetLimits(requestRateLimits);
 }
コード例 #2
0
ファイル: AccountWrapper.cs プロジェクト: orbitlens/centaurus
 public AccountWrapper(Account account, RequestRateLimits requestRateLimits)
 {
     Account        = account ?? throw new ArgumentNullException(nameof(account));
     RequestCounter = new AccountRequestCounter(Account, requestRateLimits);
 }
コード例 #3
0
 public void SetLimits(RequestRateLimits requestRateLimits)
 {
     this.requestRateLimits = requestRateLimits ?? throw new ArgumentNullException(nameof(requestRateLimits));
 }