38 references to SR
System.Net.WebSockets.Client (38)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (8)
53throw new ArgumentException(SR.Format(SR.net_WebSockets_InvalidCharInProtocolString, subProtocol, invalidCharDescription), nameof(subProtocol)); 61throw new ArgumentException(SR.Format(SR.net_WebSockets_ReasonNotNull, 79throw new ArgumentException(SR.Format(SR.net_WebSockets_InvalidCloseStatusCode, 88throw new ArgumentException(SR.Format(SR.net_WebSockets_InvalidCloseStatusDescription,
System\Net\WebSockets\ClientWebSocket.cs (4)
97throw new ArgumentException(SR.net_uri_NotAbsolute, nameof(uri)); 101throw new ArgumentException(SR.net_WebSockets_Scheme, nameof(uri)); 114throw new InvalidOperationException(SR.net_WebSockets_AlreadyStarted); 171throw new InvalidOperationException(SR.net_WebSockets_NotConnected);
System\Net\WebSockets\ClientWebSocketOptions.cs (7)
169throw new ArgumentException(SR.Format(SR.net_WebSockets_NoDuplicateProtocol, subProtocol), nameof(subProtocol)); 191SR.Format(SR.net_WebSockets_ArgumentOutOfRange_TooSmall, 213SR.Format(SR.net_WebSockets_ArgumentOutOfRange_TooSmall, 290throw new InvalidOperationException(SR.net_WebSockets_AlreadyStarted);
System\Net\WebSockets\WebSocketHandle.Managed.cs (19)
56throw new ArgumentException(SR.net_WebSockets_CustomInvokerRequiredForHttp2, nameof(options)); 64throw new ArgumentException(SR.net_WebSockets_OptionsIncompatibleWithCustomInvoker, nameof(options)); 172SR.Format(SR.net_WebSockets_AcceptUnsupportedProtocol, string.Join(", ", options.RequestedSubProtocols), string.Join(", ", subprotocolArray))); 222throw new WebSocketException(WebSocketError.Faulted, SR.net_webstatus_ConnectFailure, exc); 348SR.Format(SR.net_WebSockets_InvalidResponseHeader, ClientWebSocketDeflateConstants.Extension, value.ToString())); 364throw new WebSocketException(SR.Format(SR.net_WebSockets_ClientWindowBitsNegotiationFailure, 370throw new WebSocketException(SR.Format(SR.net_WebSockets_ServerWindowBitsNegotiationFailure, 455throw new WebSocketException(WebSocketError.NotAWebSocket, SR.Format(SR.net_WebSockets_ConnectStatusExpected, (int)response.StatusCode, (int)HttpStatusCode.SwitchingProtocols)); 469throw new WebSocketException(WebSocketError.NotAWebSocket, SR.Format(SR.net_WebSockets_ConnectStatusExpected, (int)response.StatusCode, (int)HttpStatusCode.OK)); 527throw new WebSocketException(WebSocketError.HeaderError, SR.Format(SR.net_WebSockets_InvalidResponseHeader, name, hsv)); 530throw new WebSocketException(WebSocketError.Faulted, SR.Format(SR.net_WebSockets_MissingResponseHeader, name));