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