62 references to ThrowHelperArgument
System.ServiceModel.Http (13)
System\ServiceModel\Channels\HttpChannelFactory.cs (5)
60
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("bindingElement",
68
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("bindingElement",
76
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("bindingElement",
89
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("value", SR.Format(SR.HttpRequiresSingleAuthScheme,
1374
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(nameof(authenticationScheme), SR.Format(SR.HttpRequiresSingleAuthScheme,
System\ServiceModel\Channels\HttpsChannelFactory.cs (2)
77
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(nameof(remoteAddress), SR.Format(
91
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(nameof(remoteAddress), SR.HttpsExplicitIdentity);
System\ServiceModel\Channels\HttpsTransportBindingElement.cs (1)
81
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("TChannel", SR.Format(SR.ChannelTypeNotSupported, typeof(TChannel)));
System\ServiceModel\Channels\HttpTransportBindingElement.cs (4)
175
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(nameof(value), SR.Format(SR.HttpProxyRequiresSingleAuthScheme,
337
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("TChannel", SR.Format(SR.CouldnTCreateChannelForChannelType2, context.Binding.Name, typeof(TChannel)));
342
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("value", SR.Format(SR.HttpAuthSchemeCannotBeNone,
347
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("value", SR.Format(SR.HttpRequiresSingleAuthScheme,
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (1)
543
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("state", SRP.SPS_InvalidAsyncResult);
System.ServiceModel.NetFramingBase (3)
System\ServiceModel\Channels\NetFramingTransportChannelFactory.cs (1)
374
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(nameof(via), SR.Format(SR.InvalidUriScheme,
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (2)
116
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("upgradeInitiator", SR.Format(SR.UnsupportedUpgradeInitiator, upgradeInitiator.GetType()));
121
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("kind", SR.Format(SR.StreamUpgradeUnsupportedChannelBindingKind, GetType(), kind));
System.ServiceModel.NetNamedPipe (2)
System\ServiceModel\Channels\NamedPipeTransportBindingElement.cs (1)
63
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(nameof(TChannel), SR.Format(SR.ChannelTypeNotSupported, typeof(TChannel)));
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
426
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(nameof(uri), SR.PipeUriSchemeWrong);
System.ServiceModel.NetTcp (1)
System\ServiceModel\Channels\TcpTransportBindingElement.cs (1)
68
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("TChannel", SR.Format(SR.ChannelTypeNotSupported, typeof(TChannel)));
System.ServiceModel.Primitives (42)
System\IdentityModel\Claims\Claim.cs (2)
60
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("claimType", SRP.ArgumentCannotBeEmptyString);
70
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("right", SRP.ArgumentCannotBeEmptyString);
System\IdentityModel\SignatureResourcePool.cs (1)
22
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm)));
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (6)
130
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm)));
192
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm)));
235
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm)));
304
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm)));
388
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm)));
398
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm)));
System\ServiceModel\Channels\Binding.cs (2)
31
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("name", SRP.SFXBindingNameCannotBeNullOrEmpty);
80
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("value", SRP.SFXBindingNameCannotBeNullOrEmpty);
System\ServiceModel\Channels\MessageVersion.cs (4)
66
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("addressingVersion",
86
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("addressingVersion",
98
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("addressingVersion",
104
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("envelopeVersion",
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (1)
345
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("TChannel", SRP.Format(SRP.ChannelTypeNotSupported, typeof(TChannel)));
System\ServiceModel\Channels\ServiceChannel.cs (2)
800
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("result", SRP.AsyncEndCalledOnWrongChannel);
805
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("result", SRP.AsyncEndCalledWithAnIAsyncResult);
System\ServiceModel\Channels\TimeoutStream.cs (1)
24
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(nameof(stream), SRP.StreamDoesNotSupportTimeout);
System\ServiceModel\Channels\TransportChannelFactory.cs (1)
166
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("via", SRP.Format(SRP.InvalidUriScheme,
System\ServiceModel\Description\ServiceEndpoint.cs (1)
123
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("value", SRP.UriMustBeAbsolute);
System\ServiceModel\Description\ServiceReflector.cs (1)
168
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(paramName, SRP.Format(SRP.SFXUnvalidNamespaceParam, ns));
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
497
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("version",
System\ServiceModel\EndpointAddress.cs (6)
168
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(nameof(uri), SRP.UriMustBeAbsolute);
533
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(
538
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(
599
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(nameof(addressingVersion),
977
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(nameof(addressingVersion),
997
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("addressingVersion", SRP.Format(SRP.SFxNone2004));
System\ServiceModel\FaultReason.cs (1)
64
array[index++] = faultReasonText ?? throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("translations", SRP.NoNullTranslations);
System\ServiceModel\KeyedByTypeCollection.cs (1)
110
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("item", SRP.Format(SRP.DuplicateBehavior1, item.GetType().FullName));
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (1)
57
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("authScheme", string.Format(SRP.HttpRequiresSingleAuthScheme, authScheme));
System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
492
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(nameof(DetectReplays), SRP.Format(SRP.SecurityProtocolCannotDoReplayDetection, this));
System\ServiceModel\Security\Tokens\ClaimTypeRequirement.cs (1)
26
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("claimType", SRP.ClaimTypeCannotBeEmpty);
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (2)
141
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("validFrom", SRP.EffectiveGreaterThanExpiration);
150
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("keyEffectiveTime", SRP.EffectiveGreaterThanExpiration);
System\ServiceModel\UriSchemeKeyedCollection.cs (6)
40
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("item", SRP.Format(SRP.BaseAddressDuplicateScheme, item.Scheme));
53
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("item", SRP.Format(SRP.BaseAddressDuplicateScheme, item.Scheme));
68
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(argumentName, SRP.BaseAddressMustBeAbsolute);
73
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(argumentName, SRP.BaseAddressCannotHaveUserInfo);
78
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(argumentName, SRP.BaseAddressCannotHaveQuery);
83
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
(argumentName, SRP.BaseAddressCannotHaveFragment);
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\UnixDomainSocketTransportBindingElement.cs (1)
68
throw DiagnosticUtility.ExceptionUtility.
ThrowHelperArgument
("TChannel", SR.Format(SR.ChannelTypeNotSupported, typeof(TChannel)));