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

◆ HandleReadResponseContentException()

void System.Net.Http.Http3RequestStream.HandleReadResponseContentException ( Exception ex,
CancellationToken cancellationToken )
inlineprivate

Definition at line 1064 of file Http3RequestStream.cs.

1065 {
1067 {
1069 {
1070 if (!(ex is Http3ConnectionException))
1071 {
1072 if (ex is OperationCanceledException ex2 && ex2.CancellationToken == cancellationToken)
1073 {
1074 _stream.AbortRead(268L);
1076 return;
1077 }
1078 _stream.AbortRead(258L);
1080 }
1083 }
1084 Exception inner = _connection.Abort(ex);
1086 }
1088 }
Exception Abort(Exception abortException)
void AbortRead(long errorCode)
static string net_http_client_execution_error
Definition SR.cs:58
Definition SR.cs:7

References System.Net.Http.Http3RequestStream._connection, System.Net.Http.Http3RequestStream._stream, System.Net.Http.Http3Connection.Abort(), System.Net.Quic.QuicStream.AbortRead(), System.cancellationToken, System.L, System.SR.net_http_client_execution_error, and System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw().

Referenced by System.Net.Http.Http3RequestStream.ReadResponseContent(), and System.Net.Http.Http3RequestStream.ReadResponseContentAsync().