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