1 instantiation of ActiveHandlerTrackingEntry
Microsoft.Extensions.Http (1)
DefaultHttpClientFactory.cs (1)
168
return new
ActiveHandlerTrackingEntry
(name, handler, scope, options.HandlerLifetime);
12 references to ActiveHandlerTrackingEntry
Microsoft.Extensions.Http (12)
ActiveHandlerTrackingEntry.cs (1)
16
private static readonly TimerCallback _timerCallback = (s) => ((
ActiveHandlerTrackingEntry
)s!).Timer_Tick();
DefaultHttpClientFactory.cs (10)
26
private readonly Func<string, Lazy<
ActiveHandlerTrackingEntry
>> _entryFactory;
51
internal readonly ConcurrentDictionary<string, Lazy<
ActiveHandlerTrackingEntry
>> _activeHandlers;
79
_activeHandlers = new ConcurrentDictionary<string, Lazy<
ActiveHandlerTrackingEntry
>>(StringComparer.Ordinal);
82
return new Lazy<
ActiveHandlerTrackingEntry
>(() =>
123
ActiveHandlerTrackingEntry
entry = _activeHandlers.GetOrAdd(name, _entryFactory).Value;
131
internal
ActiveHandlerTrackingEntry
CreateHandlerEntry(string name)
195
var
active = (
ActiveHandlerTrackingEntry
)state!;
199
bool removed = _activeHandlers.TryRemove(active.Name, out Lazy<
ActiveHandlerTrackingEntry
>? found);
218
internal virtual void StartHandlerEntryTimer(
ActiveHandlerTrackingEntry
entry)
ExpiredHandlerTrackingEntry.cs (1)
17
public ExpiredHandlerTrackingEntry(
ActiveHandlerTrackingEntry
other)