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