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

◆ Dispose() [2/2]

void System.Net.Http.HttpConnection.Dispose ( bool disposing)
inlineprivate

Definition at line 1156 of file HttpConnection.cs.

1157 {
1158 int num = Interlocked.Exchange(ref _disposed, 1);
1159 if (num == 1)
1160 {
1161 return;
1162 }
1163 if (System.Net.NetEventSource.Log.IsEnabled())
1164 {
1165 Trace("Connection closing.", "Dispose");
1166 }
1167 if (HttpTelemetry.Log.IsEnabled() && num == 2)
1168 {
1169 HttpTelemetry.Log.Http11ConnectionClosed();
1170 }
1171 if (!_detachedFromPool)
1172 {
1174 }
1175 if (disposing)
1176 {
1177 GC.SuppressFinalize(this);
1178 _stream.Dispose();
1180 if (valueTask.HasValue)
1181 {
1182 HttpConnectionBase.IgnoreExceptions(valueTask.GetValueOrDefault());
1183 }
1184 }
1185 }
void Dispose()
Definition Stream.cs:639
void InvalidateHttp11Connection(HttpConnection connection, bool disposing=true)
readonly HttpConnectionPool _pool
override void Trace(string message, [CallerMemberName] string memberName=null)
ValueTask< int >? ConsumeReadAheadTask()
static readonly System.Net.NetEventSource Log
static int Exchange(ref int location1, int value)

References System.Net.Http.HttpConnection._detachedFromPool, System.Net.Http.HttpConnection._disposed, System.Net.Http.HttpConnection._pool, System.Net.Http.HttpConnection._stream, System.Net.Http.HttpConnection.ConsumeReadAheadTask(), System.IO.Stream.Dispose(), System.Threading.Interlocked.Exchange(), System.Net.Http.HttpConnectionBase.IgnoreExceptions(), System.Net.Http.HttpConnectionPool.InvalidateHttp11Connection(), System.Net.Http.HttpTelemetry.Log, System.Net.NetEventSource.Log, System.GC.SuppressFinalize(), and System.Net.Http.HttpConnection.Trace().