36 references to Format
System.ServiceModel.Http (36)
System\ServiceModel\BasicHttpBinding.cs (1)
58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.Format(SR.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
System\ServiceModel\BasicHttpsBinding.cs (1)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.Format(SR.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (2)
259throw FxTrace.Exception.AsError(new CommunicationException(SR.Format(SR.WebSocketVersionMismatchFromServer, ""), ex)); 261throw FxTrace.Exception.AsError(new CommunicationException(SR.Format(SR.WebSocketSubProtocolMismatchFromServer, ""), ex));
System\ServiceModel\Channels\HttpChannelFactory.cs (4)
89throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.Format(SR.HttpRequiresSingleAuthScheme, 1259new ProtocolException(SR.Format(SR.HttpIfModifiedSinceParseError, value))); 1306new ProtocolException(SR.Format(SR.EnvelopeVersionUnknown, 1374throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(authenticationScheme), SR.Format(SR.HttpRequiresSingleAuthScheme,
System\ServiceModel\Channels\HttpChannelHelpers.cs (5)
132return new EndpointNotFoundException(SR.Format(SR.EndpointNotFound, request.RequestUri.AbsoluteUri), exception); 140return new SecurityNegotiationException(SR.Format(SR.TrustFailure, request.RequestUri.Authority), exception); 149return new CommunicationException(SR.Format(SR.HttpReceiveFailure, request.RequestUri), exception); 153return new EndpointNotFoundException(SR.Format(SR.EndpointNotFound, request.RequestUri.AbsoluteUri), exception); 157return new SecurityNegotiationException(SR.Format(SR.TrustFailure, request.RequestUri.Authority), exception);
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (8)
94result = new ProtocolException(SR.Format(SR.HttpAddressingNoneHeaderOnWire, 113result = new ProtocolException(SR.Format(SR.HttpAddressingNoneHeaderOnWire, 264WcfEventSource.Instance.MaxReceivedMessageSizeExceeded(SR.Format(SR.MaxReceivedMessageSizeExceeded, _factory.MaxReceivedMessageSize)); 267string message = SR.Format(SR.MaxReceivedMessageSizeExceeded, _factory.MaxReceivedMessageSize); 351throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new EndpointNotFoundException(SR.Format(SR.EndpointNotFound, _httpRequestMessage.RequestUri.AbsoluteUri))); 356throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ServerTooBusyException(SR.Format(SR.HttpServerTooBusy, _httpRequestMessage.RequestUri.AbsoluteUri))); 366throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SR.Format(SR.MissingContentType, _httpRequestMessage.RequestUri))); 393string message = SR.Format(SR.HttpAuthorizationForbidden, _factory.AuthenticationScheme);
System\ServiceModel\Channels\HttpsChannelFactory.cs (1)
77throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(remoteAddress), SR.Format(
System\ServiceModel\Channels\HttpsTransportBindingElement.cs (1)
81throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("TChannel", SR.Format(SR.ChannelTypeNotSupported, typeof(TChannel)));
System\ServiceModel\Channels\HttpTransportBindingElement.cs (3)
175throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(value), SR.Format(SR.HttpProxyRequiresSingleAuthScheme, 342throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.Format(SR.HttpAuthSchemeCannotBeNone, 347throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SR.Format(SR.HttpRequiresSingleAuthScheme,
System\ServiceModel\Channels\WebSocketHelper.cs (3)
222errorMsg = SR.Format(SR.CloseTimedOut, timeout); 225errorMsg = SR.Format(SR.WebSocketSendTimedOut, timeout); 228errorMsg = SR.Format(SR.WebSocketReceiveTimedOut, timeout);
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (3)
508SR.Format(SR.WaitForMessageTimedOut, timeout), 564_pendingException = FxTrace.Exception.AsError(new QuotaExceededException(SR.Format(SR.MaxReceivedMessageSizeExceeded, _maxBufferSize))); 657WcfEventSource.Instance.ReceiveTimeout(SR.Format(SR.WaitForMessageTimedOut, timeout));
System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
105throw FxTrace.Exception.Argument("value", SR.Format(SR.WebSocketInvalidProtocolContainsMultipleSubProtocolString, value));
System\ServiceModel\NetHttpBinding.cs (1)
98throw FxTrace.Exception.AsError(new InvalidOperationException(SR.Format(SR.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
System\ServiceModel\NetHttpsBinding.cs (1)
90throw FxTrace.Exception.AsError(new InvalidOperationException(SR.Format(SR.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
System\ServiceModel\WSHttpBinding.cs (1)
55throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.Format(SR.HttpClientCredentialTypeInvalid, _security.Transport.ClientCredentialType)));