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

◆ CheckForShutdown()

void System.Net.Http.Http3Connection.CheckForShutdown ( )
inlineprivate

Definition at line 97 of file Http3Connection.cs.

98 {
99 if (_activeRequests.Count != 0 || _connection == null)
100 {
101 return;
102 }
103 if (_connectionClosedTask == null)
104 {
106 }
107 QuicConnection connection = _connection;
108 _connection = null;
110 {
111 if (closeTask.IsFaulted && System.Net.NetEventSource.Log.IsEnabled())
112 {
113 Trace($"{"QuicConnection"} failed to close: {closeTask.Exception.InnerException}", "CheckForShutdown");
114 }
115 try
116 {
117 connection.Dispose();
118 }
119 catch (Exception value)
120 {
121 Trace($"{"QuicConnection"} failed to dispose: {value}", "CheckForShutdown");
122 }
123 if (_clientControl != null)
124 {
126 _clientControl = null;
127 }
129 }
override void Trace(string message, [CallerMemberName] string memberName=null)
readonly Dictionary< QuicStream, Http3RequestStream > _activeRequests
static readonly System.Net.NetEventSource Log
ValueTask CloseAsync(long errorCode, CancellationToken cancellationToken=default(CancellationToken))
override void Dispose(bool disposing)
Task ContinueWith(Action< Task< TResult > > continuationAction)
Definition Task.cs:263

References System.Net.Http.Http3Connection._activeRequests, System.Net.Http.Http3Connection._clientControl, System.Net.Http.Http3Connection._connection, System.Net.Http.Http3Connection._connectionClosedTask, System.Threading.Tasks.ValueTask< TResult >.AsTask(), System.Net.Quic.QuicConnection.CloseAsync(), System.Threading.Tasks.Task< TResult >.ContinueWith(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Threading.Tasks.TaskScheduler.Default, System.Net.Quic.QuicStream.Dispose(), System.L, System.Net.NetEventSource.Log, System.Threading.CancellationToken.None, System.Net.Http.Http3Connection.Trace(), and System.value.

Referenced by System.Net.Http.Http3Connection.Abort(), System.Net.Http.Http3Connection.Dispose(), System.Net.Http.Http3Connection.OnServerGoAway(), and System.Net.Http.Http3Connection.RemoveStream().