1 instantiation of OpenConnectionsTagKey
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Metrics\ConnectionMetrics.cs (1)
50
new
OpenConnectionsTagKey
(_protocolVersionTag, _schemeTag, _hostTag, _portTag, idle, _peerAddressTag);
9 references to OpenConnectionsTagKey
System.Net.Http (9)
System\Net\Http\SocketsHttpHandler\Metrics\ConnectionMetrics.cs (1)
49
private
OpenConnectionsTagKey
CreateTagKey(bool idle) =>
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (8)
14
internal readonly struct OpenConnectionsTagKey : IEquatable<
OpenConnectionsTagKey
>
35
public bool Equals(
OpenConnectionsTagKey
other) =>
43
public override bool Equals(object? obj) => obj is
OpenConnectionsTagKey
other && Equals(other);
71
private readonly ConcurrentDictionary<
OpenConnectionsTagKey
, long> _counts = new();
76
public void Increment(in
OpenConnectionsTagKey
key)
85
public void Decrement(in
OpenConnectionsTagKey
key)
103
if (_counts.TryRemove(new KeyValuePair<
OpenConnectionsTagKey
, long>(key, currentValue)))
126
foreach (KeyValuePair<
OpenConnectionsTagKey
, long> entry in _counts)