22 references to Format
System.Net.HttpListener (22)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
79
throw new ArgumentException(SR.
Format
(SR.net_WebSockets_InvalidCloseStatusCode,
System\Net\HttpListenerRequest.cs (4)
233
throw new InvalidOperationException(SR.
Format
(SR.net_listener_callinprogress, $"{nameof(GetClientCertificate)}()/{nameof(BeginGetClientCertificate)}()"));
248
throw new InvalidOperationException(SR.
Format
(SR.net_listener_callinprogress, $"{nameof(GetClientCertificate)}()/{nameof(BeginGetClientCertificate)}()"));
270
throw new InvalidOperationException(SR.
Format
(SR.net_listener_mustcall, "GetClientCertificate()/BeginGetClientCertificate()"));
272
throw new InvalidOperationException(SR.
Format
(SR.net_listener_mustcompletecall, "GetClientCertificate()/BeginGetClientCertificate()"));
System\Net\HttpListenerRequestUriBuilder.cs (3)
253
NetEventSource.Error(this, SR.
Format
(SR.net_log_listener_cant_convert_percent_value, codePoint));
268
NetEventSource.Error(this, SR.
Format
(SR.net_log_listener_cant_convert_percent_value, codePoint));
284
if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, SR.
Format
(SR.net_log_listener_cant_convert_percent_value, escapedCharacter));
System\Net\Managed\ChunkedInputStream.cs (2)
163
throw new InvalidOperationException(SR.
Format
(SR.net_io_invalidendcall, nameof(EndRead)));
171
throw new HttpListenerException((int)HttpStatusCode.BadRequest, SR.
Format
(SR.net_io_operation_aborted, ares._error.Message));
System\Net\Managed\HttpEndPointListener.cs (2)
267
throw new HttpListenerException((int)HttpStatusCode.BadRequest, SR.
Format
(SR.net_listener_already, prefix));
354
throw new HttpListenerException((int)HttpStatusCode.BadRequest, SR.
Format
(SR.net_listener_already, prefix));
System\Net\Managed\HttpListener.Managed.cs (4)
278
throw new InvalidOperationException(SR.
Format
(SR.net_listener_mustcall, "Start()"));
314
throw new InvalidOperationException(SR.
Format
(SR.net_io_invalidendcall, nameof(EndGetContext)));
344
throw new InvalidOperationException(SR.
Format
(SR.net_listener_mustcall, "Start()"));
348
throw new InvalidOperationException(SR.
Format
(SR.net_listener_mustcall, "AddPrefix()"));
System\Net\Managed\HttpListenerRequest.Managed.cs (2)
53
throw new NotSupportedException(SR.
Format
(SR.net_listener_invalid_cbt_type, kind.ToString()));
367
throw new InvalidOperationException(SR.
Format
(SR.net_io_invalidendcall, nameof(EndGetClientCertificate)));
System\Net\Managed\HttpRequestStream.Managed.cs (1)
176
throw new InvalidOperationException(SR.
Format
(SR.net_io_invalidendcall, nameof(EndRead)));
System\Net\ServiceNameStore.cs (2)
158
NetEventSource.Info(this, SR.
Format
(SR.net_log_listener_spn_not_add, uriPrefix));
186
NetEventSource.Info(this, SR.
Format
(SR.net_log_listener_spn_not_remove, uriPrefix));
System\Net\WebSockets\HttpWebSocket.cs (1)
42
SR.
Format
(SR.net_WebSockets_ClientAcceptingNoProtocols, subProtocol));