22 references to Format
System.ServiceModel.Http (22)
System\ServiceModel\BasicHttpBinding.cs (1)
21throw ExceptionHelper.PlatformNotSupported(SR.Format(SR.UnsupportedSecuritySetting, nameof(securityMode), securityMode));
System\ServiceModel\BasicHttpSecurity.cs (1)
37throw ExceptionHelper.PlatformNotSupported(SR.Format(SR.UnsupportedSecuritySetting, nameof(value), value));
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
134throw FxTrace.Exception.AsError(new InvalidOperationException(SR.Format(SR.WebSocketInvalidProtocolNotInClientList, obtained, requested)));
System\ServiceModel\Channels\HttpChannelFactory.cs (6)
435return new ArgumentException(SR.Format(SR.HttpToMustEqualVia, to, via)); 1074throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SR.Format( 1144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SR.Format( 1205new ProtocolException(SR.Format(SR.HttpSoapActionMismatch, action, value))); 1396throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.Format( 1405throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.Format(
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
172new ProtocolException(SR.Format(SR.UnexpectedHttpResponseCode,
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (2)
369throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SR.Format(SR.FramingContentTypeMismatch, _httpRequestMessage.Content.Headers.ContentType.ToString(), _httpRequestMessage.RequestUri))); 385string message = SR.Format(SR.HttpAuthorizationFailed, _factory.AuthenticationScheme,
System\ServiceModel\Channels\HttpResponseMessageProperty.cs (1)
68SR.Format(SR.ValueMustBeInRange, 100, 599)));
System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
337throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("TChannel", SR.Format(SR.CouldnTCreateChannelForChannelType2, context.Binding.Name, typeof(TChannel)));
System\ServiceModel\Channels\MessageContent.cs (3)
79new ProtocolException(SR.Format(SR.HttpSoapActionMismatch, action, value))); 112new ProtocolException(SR.Format(SR.HttpSoapActionMismatchContentType, action, value))); 119new ProtocolException(SR.Format(SR.HttpContentTypeFormatException, formatException.Message, Headers.ContentType.ToString()), formatException));
System\ServiceModel\Channels\WebSocketHelper.cs (1)
231errorMsg = SR.Format(SR.WebSocketOperationTimedOut, operation, timeout);
System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
111throw FxTrace.Exception.Argument("value", SR.Format(SR.WebSocketInvalidProtocolInvalidCharInProtocolString, value, invalidChar));
System\ServiceModel\HttpBindingBase.cs (2)
296throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.Format(SR.UnsupportedSecuritySetting, nameof(security.Mode), mode))); 306throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.Format(SR.UnsupportedSecuritySetting, "Transport.ClientCredentialType", transport.ClientCredentialType)));
System\ServiceModel\NetHttpsBinding.cs (1)
24throw ExceptionHelper.PlatformNotSupported(SR.Format(SR.UnsupportedSecuritySetting, "securityMode", securityMode));