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

◆ Abort()

Exception System.Net.Http.Http3Connection.Abort ( Exception abortException)
inlinepackage

Definition at line 187 of file Http3Connection.cs.

188 {
190 if (ex != null)
191 {
192 if (System.Net.NetEventSource.Log.IsEnabled() && ex != abortException)
193 {
194 Trace($"{"abortException"}=={abortException}", "Abort");
195 }
196 return ex;
197 }
199 Http3ErrorCode errorCode = (abortException as Http3ProtocolException)?.ErrorCode ?? Http3ErrorCode.InternalError;
200 lock (SyncObj)
201 {
202 if (_lastProcessedStreamId == -1)
203 {
204 _lastProcessedStreamId = long.MaxValue;
205 }
206 if (_connection != null && _connectionClosedTask == null)
207 {
209 }
211 return abortException;
212 }
213 }
override void Trace(string message, [CallerMemberName] string memberName=null)
readonly HttpConnectionPool _pool
void InvalidateHttp3Connection(Http3Connection connection)
static readonly System.Net.NetEventSource Log
ValueTask CloseAsync(long errorCode, CancellationToken cancellationToken=default(CancellationToken))
static int CompareExchange(ref int location1, int value, int comparand)

References System.Net.Http.Http3Connection._abortException, System.Net.Http.Http3Connection._connection, System.Net.Http.Http3Connection._connectionClosedTask, System.Net.Http.Http3Connection._lastProcessedStreamId, System.Net.Http.Http3Connection._pool, System.Threading.Tasks.ValueTask< TResult >.AsTask(), System.Net.Http.Http3Connection.CheckForShutdown(), System.Net.Quic.QuicConnection.CloseAsync(), System.Threading.Interlocked.CompareExchange(), System.Net.Http.HttpConnectionPool.InvalidateHttp3Connection(), System.Net.NetEventSource.Log, System.Net.Http.Http3Connection.SyncObj, and System.Net.Http.Http3Connection.Trace().

Referenced by System.Net.Http.Http3RequestStream.HandleReadResponseContentException(), and System.Net.Http.Http3RequestStream.SendAsync().