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