67 references to QuicError
IIS.FunctionalTests (4)
Http3Tests.cs (4)
125Assert.Equal(QuicError.StreamAborted, qex.QuicError); 141Assert.Equal(QuicError.StreamAborted, qex.QuicError); 158Assert.Equal(QuicError.StreamAborted, qex.QuicError); 172Assert.Equal(QuicError.StreamAborted, qex.QuicError);
InMemory.FunctionalTests (1)
Http3\Http3ConnectionTests.cs (1)
768System.Net.Quic.QuicError.ConnectionTimeout,
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
Http3Tests.cs (4)
178Assert.Equal(QuicError.StreamAborted, qex.QuicError); 211Assert.Equal(QuicError.StreamAborted, qex.QuicError); 237Assert.Equal(QuicError.StreamAborted, qex.QuicError); 258Assert.Equal(QuicError.StreamAborted, qex.QuicError);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (13)
Internal\QuicConnectionContext.cs (3)
131catch (QuicException ex) when (ex.QuicError == QuicError.ConnectionAborted) 147catch (QuicException ex) when (ex.QuicError == QuicError.OperationAborted) 162catch (QuicException ex) when (ex.QuicError == QuicError.ConnectionTimeout)
Internal\QuicConnectionListener.cs (2)
128catch (QuicException e) when (e.QuicError == QuicError.AlpnInUse) 176catch (QuicException ex) when (ex.QuicError == QuicError.OperationAborted)
Internal\QuicStreamContext.cs (8)
273catch (QuicException ex) when (ex.QuicError is QuicError.StreamAborted or QuicError.ConnectionAborted) 284catch (QuicException ex) when (ex.QuicError is QuicError.ConnectionIdle) 292catch (QuicException ex) when (ex.QuicError is QuicError.OperationAborted) 434catch (QuicException ex) when (ex.QuicError is QuicError.StreamAborted or QuicError.ConnectionAborted) 445catch (QuicException ex) when (ex.QuicError is QuicError.ConnectionIdle) 453catch (QuicException ex) when (ex.QuicError is QuicError.OperationAborted)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (5)
QuicConnectionContextTests.cs (3)
140Assert.Equal(QuicError.ConnectionAborted, innerEx.QuicError); 303Assert.Equal(QuicError.ConnectionAborted, innerEx.QuicError); 488Assert.Equal(QuicError.StreamAborted, clientEx.QuicError);
QuicStreamContextTests.cs (2)
469Assert.Equal(QuicError.StreamAborted, ex.QuicError); 522Assert.Equal(QuicError.StreamAborted, clientEx.QuicError);
System.Net.Http (18)
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (10)
276catch (QuicException e) when (e.QuicError != QuicError.OperationAborted) 325catch (QuicException ex) when (ex.QuicError == QuicError.OperationAborted) 473if (t.Exception?.InnerException is QuicException ex && ex.QuicError == QuicError.StreamAborted) 481catch (QuicException ex) when (ex.QuicError == QuicError.ConnectionAborted) 538catch (QuicException ex) when (ex.QuicError == QuicError.OperationAborted) 542catch (QuicException ex) when (ex.QuicError == QuicError.ConnectionAborted) 580catch (QuicException ex) when (ex.QuicError == QuicError.StreamAborted) 673catch (QuicException ex) when (ex.QuicError == QuicError.OperationAborted) 677catch (QuicException ex) when (ex.QuicError == QuicError.ConnectionAborted) 774catch (QuicException ex) when (ex.QuicError == QuicError.StreamAborted)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (8)
271catch (QuicException ex) when (ex.QuicError == QuicError.StreamAborted) 294catch (QuicException ex) when (ex.QuicError == QuicError.ConnectionAborted) 303catch (QuicException ex) when (ex.QuicError == QuicError.OperationAborted && cancellationToken.IsCancellationRequested) 309catch (QuicException ex) when (ex.QuicError == QuicError.OperationAborted && _connection.AbortException != null) 1291case QuicException e when (e.QuicError == QuicError.StreamAborted): 1296case QuicException e when (e.QuicError == QuicError.ConnectionAborted): 1303case QuicException e when (e.QuicError == QuicError.OperationAborted && _connection.AbortException != null): 1310case QuicException e when (e.QuicError == QuicError.OperationAborted && cancellationToken.IsCancellationRequested):
System.Net.Quic (22)
System\Net\Quic\Internal\ThrowHelper.cs (10)
20return new QuicException(QuicError.ConnectionAborted, errorCode, SR.Format(SR.net_quic_connectionaborted, errorCode)); 25return new QuicException(QuicError.StreamAborted, errorCode, SR.Format(SR.net_quic_streamaborted, errorCode)); 30return new QuicException(QuicError.OperationAborted, null, message ?? SR.net_quic_operationaborted); 73if (status == QUIC_STATUS_CONNECTION_REFUSED) return new QuicException(QuicError.ConnectionRefused, null, errorCode, SR.net_quic_connection_refused); 74if (status == QUIC_STATUS_CONNECTION_TIMEOUT) return new QuicException(QuicError.ConnectionTimeout, null, errorCode, SR.net_quic_timeout); 75if (status == QUIC_STATUS_VER_NEG_ERROR) return new QuicException(QuicError.VersionNegotiationError, null, errorCode, SR.net_quic_ver_neg_error); 76if (status == QUIC_STATUS_CONNECTION_IDLE) return new QuicException(QuicError.ConnectionIdle, null, errorCode, SR.net_quic_connection_idle); 77if (status == QUIC_STATUS_PROTOCOL_ERROR) return new QuicException(QuicError.TransportError, null, errorCode, SR.net_quic_protocol_error); 78if (status == QUIC_STATUS_ALPN_IN_USE) return new QuicException(QuicError.AlpnInUse, null, errorCode, SR.net_quic_alpn_in_use); 129return new QuicException(QuicError.InternalError, null, SR.Format(SR.net_quic_internal_error, GetErrorMessageForStatus(status, message)));
System\Net\Quic\QuicConnection.cs (2)
95throw new QuicException(QuicError.ConnectionTimeout, null, SR.Format(SR.net_quic_handshake_timeout, options.HandshakeTimeout)); 550if (ex is QuicException qex && qex.QuicError == QuicError.InternalError &&
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (1)
255throw new QuicException(QuicError.CallbackError, null, SR.net_quic_callback_error, ex);
System\Net\Quic\QuicException.cs (7)
19public QuicException(QuicError error, long? applicationErrorCode, string message) 30internal QuicException(QuicError error, long? applicationErrorCode, long? transportErrorCode, string message) 41internal QuicException(QuicError error, long? applicationErrorCode, string message, Exception? innerException) 53internal QuicException(QuicError error, long? applicationErrorCode, long? transportErrorCode, string message, Exception? innerException) 64public QuicError QuicError { get; } 70/// This property contains the error code set by the application layer when closing the connection (<see cref="QuicError.ConnectionAborted"/>) or closing a read/write direction of a QUIC stream (<see cref="QuicError.StreamAborted"/>). Contains null for all other errors.
System\Net\Quic\QuicListener.cs (2)
276Exception ex = ExceptionDispatchInfo.SetCurrentStackTrace(new QuicException(QuicError.ConnectionTimeout, null, SR.Format(SR.net_quic_handshake_timeout, handshakeTimeout), oce)); 315ExceptionDispatchInfo.SetCurrentStackTrace(new QuicException(QuicError.CallbackError, null, SR.net_quic_callback_error, ex)) :