internal SmoothBurstyRateLimiter(
            IStopwatchProvider <long> stopwatchProvider,
            double maxBurstSeconds,
            IAsyncBlocker asyncBlocker)
            : base(stopwatchProvider, asyncBlocker)
#else
            : base(stopwatchProvider)
Example #2
0
        internal SmoothWarmingUpRateLimiter(
            IStopwatchProvider <long> stopwatchProvider,
            TimeSpan warmupPeriod,
            double coldFactor,
            IAsyncBlocker asyncBlocker)
            : base(stopwatchProvider, asyncBlocker)
#else
            : base(stopwatchProvider)
Example #3
0
        internal RateLimiterBase(
            IStopwatchProvider <long> stopwatchProvider,
            IAsyncBlocker asyncBlocker)
        {
            this.asyncBlocker = asyncBlocker ?? TaskDelayAsyncBlocker.Instance;
#else
        {
#endif
            this.stopwatchProvider = stopwatchProvider ?? throw new ArgumentNullException(nameof(stopwatchProvider));
        }
Example #4
0
        internal SmoothRateLimiter(IStopwatchProvider <long> stopwatchProvider, IAsyncBlocker asyncBlocker)
            : base(stopwatchProvider, asyncBlocker)
#else
            : base(stopwatchProvider)