6 overrides of IdleDuration
Microsoft.AspNetCore.RateLimiting.Tests (1)
TestRateLimiter.cs (1)
17public override TimeSpan? IdleDuration => throw new NotImplementedException();
System.Threading.RateLimiting (5)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (1)
35public override TimeSpan? IdleDuration => RateLimiterHelper.GetElapsedTime(_idleSince);
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
35public override TimeSpan? IdleDuration => RateLimiterHelper.GetElapsedTime(_idleSince);
System\Threading\RateLimiting\NoopLimiter.cs (1)
17public override TimeSpan? IdleDuration => null;
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
39public override TimeSpan? IdleDuration => RateLimiterHelper.GetElapsedTime(_idleSince);
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
37public override TimeSpan? IdleDuration => RateLimiterHelper.GetElapsedTime(_idleSince);
2 references to IdleDuration
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (2)
234if (rateLimiter.Value.Value.IdleDuration is TimeSpan idleDuration && idleDuration > s_idleTimeLimit) 239idleDuration = rateLimiter.Value.Value.IdleDuration ?? TimeSpan.Zero;