1 instantiation of LimiterEntry
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (1)
101
entry = new Lazy<LimiterEntry>(() => new
LimiterEntry
(partition.Factory(partition.PartitionKey)));
11 references to LimiterEntry
System.Threading.RateLimiting (11)
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (11)
19
private readonly Dictionary<TKey, Lazy<
LimiterEntry
>> _limiters;
26
private readonly List<KeyValuePair<TKey, Lazy<
LimiterEntry
>>> _cachedLimiters = new();
45
_limiters = new Dictionary<TKey, Lazy<
LimiterEntry
>>(equalityComparer);
90
Lazy<
LimiterEntry
>? entry;
101
entry = new Lazy<
LimiterEntry
>(() => new LimiterEntry(partition.Factory(partition.PartitionKey)));
108
LimiterEntry
limiterEntry = entry.Value;
144
foreach (KeyValuePair<TKey, Lazy<
LimiterEntry
>> limiter in _limiters)
179
foreach (KeyValuePair<TKey, Lazy<
LimiterEntry
>> limiter in _limiters)
244
foreach (KeyValuePair<TKey, Lazy<
LimiterEntry
>> rateLimiter in _cachedLimiters)
250
LimiterEntry
limiterEntry = rateLimiter.Value.Value;
305
private static TimeSpan? GetIdleDuration(
LimiterEntry
limiterEntry)