73 references to Format
System.ServiceModel.Primitives (73)
Internals\System\Xml\XmlMtomReader.cs (1)
298throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomContentTransferEncodingNotSupported,
System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
158exception = new SecurityTokenValidationException(SRP.Format(SRP.X509InvalidUsageTime,
System\IdentityModel\Tokens\KeyInfoSerializer.cs (3)
165throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ErrorDeserializingKeyIdentifierClause))); 210throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ErrorSerializingKeyIdentifier), e)); 262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ErrorDeserializingKeyIdentifierClause), e));
System\ServiceModel\Channels\SecurityChannelFactory.cs (2)
242SRP.Format(SRP.SecurityProtocolFactoryShouldBeSetBeforeThisOperation))); 299throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ExtendedProtectionPolicyCustomChannelBindingNotSupported)));
System\ServiceModel\Channels\ServiceChannel.cs (1)
1110SRP.Format(SRP.SFxServiceChannelCannotBeCalledBecauseIsSessionOpenNotificationEnabled, operation.Name, "Action", OperationDescription.SessionOpenedAction, "Open")));
System\ServiceModel\Description\ServiceReflector.cs (1)
539SRP.Format(SRP.SFxErrorReflectingOnParameter4,
System\ServiceModel\Description\TypeLoader.cs (25)
479new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Attributes6, 490new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_Attributes6, 500new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_Attributes6, 1651new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Parameters5, 1667new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Parameters5, 1684new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Parameters5, 1699new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_ReturnType5, 1713new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Attributes6, 1728new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Attributes6, 1743new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Property6, 1760new InvalidOperationException(SRP.Format(SRP.SyncAsyncMatchConsistency_Property6, 1792new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_Parameters5, 1807new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_Parameters5, 1821new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_ReturnType5, 1834new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_Attributes6, 1848new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_Attributes6, 1862new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_Property6, 1878new InvalidOperationException(SRP.Format(SRP.SyncTaskMatchConsistency_Property6, 1909new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_Parameters5, 1925new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_Parameters5, 1940new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_ReturnType5, 1954new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_Attributes6, 1969new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_Attributes6, 1984new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_Property6, 2001new InvalidOperationException(SRP.Format(SRP.TaskAsyncMatchConsistency_Property6,
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (6)
399throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxRpcMessageBodyPartNameInvalid, Operation.Name, Operation.Messages[0].MessageName, _request.BodyMapping.XsdElementName, Operation.Name))); 408throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxRpcMessageBodyPartNameInvalid, Operation.Name, Operation.Messages[1].MessageName, _reply.BodyMapping.XsdElementName, responseName.EncodedName))); 499throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxHeaderNameMismatchInMessageContract, message.MessageType, header.MemberInfo.Name, header.Name, headerName))); 503throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxHeaderNameMismatchInOperation, Operation.Name, Operation.DeclaringContract.Name, Operation.DeclaringContract.Namespace, header.Name, headerName))); 510throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxHeaderNamespaceMismatchInMessageContract, message.MessageType, header.MemberInfo.Name, header.Namespace, headerNs))); 514throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxHeaderNamespaceMismatchInOperation, Operation.Name, Operation.DeclaringContract.Name, Operation.DeclaringContract.Namespace, header.Namespace, headerNs)));
System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
857string reason = SRP.Format(SRP.SFxChannelTerminated0);
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
436throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(SRP.Format(SRP.SFxInvalidMessageBody, messageInfo.WrapperName, messageInfo.WrapperNamespace, reader.NodeType, reader.Name, reader.NamespaceURI)));
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (4)
579throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(SRP.Format(SRP.SFxInvalidMessageBody, _requestWrapperName, _requestWrapperNamespace, reader.NodeType, reader.Name, reader.NamespaceURI))); 604throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(SRP.Format(SRP.SFxInvalidMessageBody, _responseWrapperName, _responseWrapperNamespace, reader.NodeType, reader.Name, reader.NamespaceURI))); 654new ArgumentException(SRP.Format(SRP.SFxParameterCountMismatch, "parts", parts.Length, "parameters", parameters.Length), "parameters")); 733new ArgumentException(SRP.Format(SRP.SFxParameterCountMismatch, "parts", parts.Length, "parameters", parameters.Length), "parameters"));
System\ServiceModel\Dispatcher\StreamFormatter.cs (4)
337SRP.Format(SRP.ValueMustBeNonNegative)), _message); 343SRP.Format(SRP.ValueMustBeNonNegative)), _message); 394throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new IOException(SRP.Format(SRP.SFxStreamIOException), ex)); 402throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(SRP.Format(
System\ServiceModel\EndpointAddress.cs (3)
685throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, SRP.Format(SRP.UnexpectedElementExpectingElement, reader.LocalName, reader.NamespaceURI, XD.AddressingDictionary.Address.Value, XD.Addressing200408Dictionary.Namespace.Value))); 856throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, SRP.Format(SRP.UnexpectedElementExpectingElement, reader.LocalName, reader.NamespaceURI, XD.AddressingDictionary.Address.Value, XD.Addressing10Dictionary.Namespace.Value))); 997throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("addressingVersion", SRP.Format(SRP.SFxNone2004));
System\ServiceModel\OperationContractAttribute.cs (1)
111SRP.Format(SRP.ContractIsNotSelfConsistentWhenIsSessionOpenNotificationEnabled, operationName, "Action", OperationDescription.SessionOpenedAction, "IsOneWay", "IsInitiating")));
System\ServiceModel\RsaEndpointIdentity.cs (1)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.PublicKeyNotRSA)));
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (2)
99throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ClientCertificateNotProvidedOnClientCredentials))); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ClientCertificateNotProvidedOnClientCredentials)));
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
623throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(SRP.Format(SRP.CannotObtainIssuedTokenKeySize)));
System\ServiceModel\Security\SecurityTimestamp.cs (1)
183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TimeStampWasCreatedTooLongAgo, CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), timeToLive, allowedClockSkew)));
System\ServiceModel\Security\SecurityUtils.cs (5)
849throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.CannotFindCert, storeName, storeLocation, findType, findValue))); 905return new InvalidOperationException(SRP.Format(SRP.CannotFindCert, storeName, storeLocation, findType, findValue)); 907return new InvalidOperationException(SRP.Format(SRP.CannotFindCertForTarget, storeName, storeLocation, findType, findValue, target)); 911return new InvalidOperationException(SRP.Format(SRP.FoundMultipleCerts, storeName, storeLocation, findType, findValue)); 913return new InvalidOperationException(SRP.Format(SRP.FoundMultipleCertsForTarget, storeName, storeLocation, findType, findValue, target));
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (1)
258throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ErrorSerializingSecurityToken), e));
System\ServiceModel\Security\X509CertificateInitiatorClientCredential.cs (1)
84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ObjectIsReadOnly)));
System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (1)
132throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ObjectIsReadOnly)));
System\ServiceModel\Security\X509ServiceCertificateAuthentication.cs (2)
157throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MissingCustomCertificateValidator))); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ObjectIsReadOnly)));
System\ServiceModel\Security\XmlHelper.cs (3)
191throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedEndOfFile))); 285throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.InvalidQName)); 309throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(idPrefix), SRP.Format(SRP.ValueMustBeGreaterThanZero)));
System\ServiceModel\SpnEndpointIdentity.cs (1)
50new ArgumentOutOfRangeException(nameof(value), value.Ticks, SRP.Format(SRP.ValueMustBeNonNegative)));