Example #1
0
 public static void Init()
 {
     if (_apiRateLimitStatus == null)
     {
         _apiRateLimitStatus = new ApiRateLimitStatus(10);
         _semaphore          = new SemaphoreSlim(1);
         _lastCall           = DateTime.UtcNow.AddSeconds(-6);
     }
 }
Example #2
0
 public ApiResponse(T response, ApiRateLimitStatus apiRateLimitStatus)
 {
     Response           = response;
     ApiRateLimitStatus = apiRateLimitStatus;
 }