コード例 #1
0
 public NagerDateRateLimitingClient(INagerDateClient innerClient, int maxConcurrentRequestsLimit)
 {
     _innerClient = innerClient;
     _throttler   = new SemaphoreSlim(maxConcurrentRequestsLimit);
 }
コード例 #2
0
 public HolidayStatsCalculator(INagerDateClient nagerDateClient, string[] supportedCountryCodes)
 {
     _nagerDateClient       = nagerDateClient;
     _supportedCountryCodes = supportedCountryCodes;
 }
コード例 #3
0
 public NagerDateDelayingClient(INagerDateClient innerClient, TimeSpan delay)
 {
     _innerClient = innerClient;
     _delay       = delay;
 }
コード例 #4
0
 public NagerDateCachingClient(INagerDateClient innerClient)
 {
     _innerClient = innerClient;
 }