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