Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Dispose()

void System.Net.Http.HttpConnectionPool.Dispose ( )
inline

Implements System.IDisposable.

Definition at line 1542 of file HttpConnectionPool.cs.

1543 {
1545 lock (SyncObj)
1546 {
1547 if (!_disposed)
1548 {
1549 if (System.Net.NetEventSource.Log.IsEnabled())
1550 {
1551 Trace("Disposing pool.", "Dispose");
1552 }
1553 _disposed = true;
1556 if (_availableHttp2Connections != null)
1557 {
1559 }
1563 if (_http3Connection != null)
1564 {
1566 _http3Connection = null;
1567 }
1568 if (_authorityExpireTimer != null)
1569 {
1571 _authorityExpireTimer = null;
1572 }
1574 {
1578 }
1579 }
1580 }
1581 list?.ForEach(delegate(HttpConnectionBase c)
1582 {
1583 c.Dispose();
1584 });
1585 }
void Add(TKey key, TValue value)
List< Http2Connection > _availableHttp2Connections
readonly List< HttpConnection > _availableHttp11Connections
void Trace(string message, [CallerMemberName] string memberName=null)
CancellationTokenSource _altSvcBlocklistTimerCancellation
static readonly System.Net.NetEventSource Log
bool Dispose(WaitHandle notifyObject)
Definition Timer.cs:176

References System.Net.Http.HttpConnectionPool._altSvcBlocklistTimerCancellation, System.Net.Http.HttpConnectionPool._associatedHttp2ConnectionCount, System.Net.Http.HttpConnectionPool._authorityExpireTimer, System.Net.Http.HttpConnectionPool._availableHttp11Connections, System.Net.Http.HttpConnectionPool._availableHttp2Connections, System.Net.Http.HttpConnectionPool._disposed, System.Net.Http.HttpConnectionPool._http3Connection, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Threading.CancellationTokenSource.Cancel(), System.Collections.Generic.Dictionary< TKey, TValue >.Clear(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Net.Http.HttpConnectionBase.Dispose(), System.Threading.CancellationTokenSource.Dispose(), System.Threading.Timer.Dispose(), System.list, System.Net.NetEventSource.Log, System.Net.Http.HttpConnectionPool.SyncObj, and System.Net.Http.HttpConnectionPool.Trace().