19 references to Format
System.Net.Quic (19)
System\Net\Quic\Internal\MsQuicConfiguration.cs (2)
129
throw new ArgumentException(SR.
Format
(SR.net_quic_not_null_not_empty_connection, nameof(SslApplicationProtocol)), nameof(options));
135
throw new PlatformNotSupportedException(SR.
Format
(SR.net_quic_ssl_option, encryptionPolicy));
System\Net\Quic\Internal\ThrowHelper.cs (7)
20
return new QuicException(QuicError.ConnectionAborted, errorCode, SR.
Format
(SR.net_quic_connectionaborted, errorCode));
25
return new QuicException(QuicError.StreamAborted, errorCode, SR.
Format
(SR.net_quic_streamaborted, errorCode));
96
return new AuthenticationException(SR.
Format
(SR.net_quic_auth, GetErrorMessageForStatus(status, message)));
103
if (status == QUIC_STATUS_USER_CANCELED) return new AuthenticationException(SR.
Format
(SR.net_auth_tls_alert, TlsAlertMessage.UserCanceled));
123
return new AuthenticationException(SR.
Format
(SR.net_auth_tls_alert, alert));
129
return new QuicException(QuicError.InternalError, null, SR.
Format
(SR.net_quic_internal_error, GetErrorMessageForStatus(status, message)));
215
throw new ArgumentNullException(argumentName, SR.
Format
(resourceName, propertyName));
System\Net\Quic\QuicConnection.cs (3)
66
throw new PlatformNotSupportedException(SR.
Format
(SR.SystemNetQuic_PlatformNotSupported, MsQuicApi.NotSupportedReason ?? "General loading failure."));
96
throw new QuicException(QuicError.ConnectionTimeout, null, SR.
Format
(SR.net_quic_handshake_timeout, options.HandshakeTimeout));
386
throw new ArgumentException(SR.
Format
(SR.net_quic_unsupported_endpoint_type, options.RemoteEndPoint.GetType()), nameof(options));
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (1)
243
throw new AuthenticationException(SR.
Format
(SR.net_quic_cert_chain_validation, sslPolicyErrors));
System\Net\Quic\QuicConnectionOptions.cs (1)
47
throw new ArgumentOutOfRangeException(argumentName, value, SR.
Format
(SR.net_quic_power_of_2, $"{nameof(QuicConnectionOptions.InitialReceiveWindowSizes)}.{propertyName}"));
System\Net\Quic\QuicListener.cs (2)
57
throw new PlatformNotSupportedException(SR.
Format
(SR.SystemNetQuic_PlatformNotSupported, MsQuicApi.NotSupportedReason ?? "General loading failure."));
278
Exception ex = ExceptionDispatchInfo.SetCurrentStackTrace(new QuicException(QuicError.ConnectionTimeout, null, SR.
Format
(SR.net_quic_handshake_timeout, handshakeTimeout), oce));
System\Net\Quic\QuicListenerOptions.cs (1)
49
throw new ArgumentNullException(argumentName, SR.
Format
(SR.net_quic_not_null_not_empty_listener, nameof(ApplicationProtocols)));
System\Net\Quic\QuicStream.cs (2)
302
throw new InvalidOperationException(SR.
Format
(SR.net_io_invalidnestedcall, "read"));
387
return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new InvalidOperationException(SR.
Format
(SR.net_io_invalidnestedcall, "write"))));