Esempio n. 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public RateLimiter()
 {
     _instance          = DictionaryRateLimiter.GetInstance();
     amount             = 1;
     maxBucketSize      = ApplicationConstant.MAX_BUCKET_SIZE;
     maxTimeWindowInSec = ApplicationConstant.MAX_TIMEWINDOW_IN_SEC;
 }
Esempio n. 2
0
 public RateLimiter()
 {
     _instance      = DictionaryRateLimiter.GetInstance();
     _amount        = 1;
     _maxBucketSize = RateLimit.MAX_BUCKET_SIZE;
     _maxTimeWindow = RateLimit.MAX_TIMEWINDOW;
 }