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