public NagerDateRateLimitingClient(INagerDateClient innerClient, int maxConcurrentRequestsLimit)
 {
     _innerClient = innerClient;
     _throttler   = new SemaphoreSlim(maxConcurrentRequestsLimit);
 }
 public HolidayStatsCalculator(INagerDateClient nagerDateClient, string[] supportedCountryCodes)
 {
     _nagerDateClient       = nagerDateClient;
     _supportedCountryCodes = supportedCountryCodes;
 }
Пример #3
0
 public NagerDateDelayingClient(INagerDateClient innerClient, TimeSpan delay)
 {
     _innerClient = innerClient;
     _delay       = delay;
 }
 public NagerDateCachingClient(INagerDateClient innerClient)
 {
     _innerClient = innerClient;
 }