Definition at line 1587 of file HttpConnectionPool.cs.
1588 {
1593 {
1595 {
1597 return true;
1598 }
1600 long tickCount = Environment.TickCount64;
1603 {
1606 }
1607 }
1609 {
1610 c.Dispose();
1611 });
1612 return false;
1614 {
1616 {
1619 {
1621 {
1622 connection.Trace(
$"Scavenging connection. Idle {TimeSpan.FromMilliseconds(idleTicks)} > {pooledConnectionIdleTimeout}.",
"CleanCacheAndDisposeIfUnused");
1623 }
1624 return false;
1625 }
1626 }
1628 {
1631 {
1633 {
1634 connection.Trace(
$"Scavenging connection. Lifetime {TimeSpan.FromMilliseconds(lifetimeTicks)} > {pooledConnectionLifetime}.",
"CleanCacheAndDisposeIfUnused");
1635 }
1636 return false;
1637 }
1638 }
1639 if (!connection.CheckUsabilityOnScavenge())
1640 {
1642 {
1643 connection.Trace("Scavenging connection. Unexpected data or EOF received.", "CleanCacheAndDisposeIfUnused");
1644 }
1645 return false;
1646 }
1647 return true;
1648 }
1650 {
1653 {
1654 }
1657 {
1659 {
1661 }
1664 {
1666 {
1668 }
1670 {
1672 }
1673 }
1674 num2 = list.Count -
i;
1676 }
1678 }
1679 }
void Add(TKey key, TValue value)
HttpConnectionSettings Settings
List< Http2Connection > _availableHttp2Connections
int _associatedHttp11ConnectionCount
readonly List< HttpConnection > _availableHttp11Connections
readonly HttpConnectionPoolManager _poolManager
bool _usedSinceLastCleanup
int _associatedHttp2ConnectionCount
TimeSpan _pooledConnectionLifetime
TimeSpan _pooledConnectionIdleTimeout
static readonly System.Net.NetEventSource Log
static readonly TimeSpan InfiniteTimeSpan
References System.Net.Http.HttpConnectionPool._associatedHttp11ConnectionCount, System.Net.Http.HttpConnectionPool._associatedHttp2ConnectionCount, System.Net.Http.HttpConnectionPool._availableHttp11Connections, System.Net.Http.HttpConnectionPool._availableHttp2Connections, System.Net.Http.HttpConnectionPool._disposed, System.Net.Http.HttpConnectionSettings._pooledConnectionIdleTimeout, System.Net.Http.HttpConnectionSettings._pooledConnectionLifetime, System.Net.Http.HttpConnectionPool._poolManager, System.Net.Http.HttpConnectionPool._usedSinceLastCleanup, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Net.Http.HttpConnectionBase.CheckUsabilityOnScavenge(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Net.Http.HttpConnectionBase.Dispose(), System.Net.Http.HttpConnectionBase.GetIdleTicks(), System.Net.Http.HttpConnectionBase.GetLifetimeTicks(), System.Threading.Timeout.InfiniteTimeSpan, System.list, System.Net.NetEventSource.Log, System.Net.Http.HttpConnectionPoolManager.Settings, System.Net.Http.HttpConnectionPool.SyncObj, System.T, System.Environment.TickCount64, and System.Net.Http.HttpConnectionBase.Trace().