42 references to ThrowHelperArgument
System.ServiceModel.Primitives (42)
System\IdentityModel\Claims\Claim.cs (2)
60throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("claimType", SRP.ArgumentCannotBeEmptyString); 70throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("right", SRP.ArgumentCannotBeEmptyString);
System\IdentityModel\SignatureResourcePool.cs (1)
22throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm)));
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (6)
130throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm))); 192throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm))); 235throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm))); 304throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm))); 388throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm))); 398throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm)));
System\ServiceModel\Channels\Binding.cs (2)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("name", SRP.SFXBindingNameCannotBeNullOrEmpty); 80throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SRP.SFXBindingNameCannotBeNullOrEmpty);
System\ServiceModel\Channels\MessageVersion.cs (4)
66throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("addressingVersion", 86throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("addressingVersion", 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("addressingVersion", 104throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("envelopeVersion",
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (1)
345throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("TChannel", SRP.Format(SRP.ChannelTypeNotSupported, typeof(TChannel)));
System\ServiceModel\Channels\ServiceChannel.cs (2)
800throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("result", SRP.AsyncEndCalledOnWrongChannel); 805throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("result", SRP.AsyncEndCalledWithAnIAsyncResult);
System\ServiceModel\Channels\TimeoutStream.cs (1)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(stream), SRP.StreamDoesNotSupportTimeout);
System\ServiceModel\Channels\TransportChannelFactory.cs (1)
166throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("via", SRP.Format(SRP.InvalidUriScheme,
System\ServiceModel\Description\ServiceEndpoint.cs (1)
123throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SRP.UriMustBeAbsolute);
System\ServiceModel\Description\ServiceReflector.cs (1)
168throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(paramName, SRP.Format(SRP.SFXUnvalidNamespaceParam, ns));
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
497throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("version",
System\ServiceModel\EndpointAddress.cs (6)
168throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(uri), SRP.UriMustBeAbsolute); 533throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( 538throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( 599throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(addressingVersion), 977throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(addressingVersion), 997throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("addressingVersion", SRP.Format(SRP.SFxNone2004));
System\ServiceModel\FaultReason.cs (1)
64array[index++] = faultReasonText ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("translations", SRP.NoNullTranslations);
System\ServiceModel\KeyedByTypeCollection.cs (1)
110throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", SRP.Format(SRP.DuplicateBehavior1, item.GetType().FullName));
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (1)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("authScheme", string.Format(SRP.HttpRequiresSingleAuthScheme, authScheme));
System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
492throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(DetectReplays), SRP.Format(SRP.SecurityProtocolCannotDoReplayDetection, this));
System\ServiceModel\Security\Tokens\ClaimTypeRequirement.cs (1)
26throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("claimType", SRP.ClaimTypeCannotBeEmpty);
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (2)
141throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("validFrom", SRP.EffectiveGreaterThanExpiration); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("keyEffectiveTime", SRP.EffectiveGreaterThanExpiration);
System\ServiceModel\UriSchemeKeyedCollection.cs (6)
40throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", SRP.Format(SRP.BaseAddressDuplicateScheme, item.Scheme)); 53throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", SRP.Format(SRP.BaseAddressDuplicateScheme, item.Scheme)); 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(argumentName, SRP.BaseAddressMustBeAbsolute); 73throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(argumentName, SRP.BaseAddressCannotHaveUserInfo); 78throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(argumentName, SRP.BaseAddressCannotHaveQuery); 83throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(argumentName, SRP.BaseAddressCannotHaveFragment);