System\ServiceModel\Channels\Message.cs (44)
38throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
50throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
123throw TraceUtility.ThrowHelperError(new ArgumentOutOfRangeException("maxBufferSize", maxBufferSize,
136throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
138throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenCopied)), this);
140throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenRead)), this);
142throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenWritten)), this);
145throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InvalidMessageState)), this);
325throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageIsEmpty)), this);
341throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenCopied)), this);
343throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenRead)), this);
345throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenWritten)), this);
347throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
350throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InvalidMessageState)), this);
357throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
374throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.RequestMessageDoesNotHaveAMessageID)), request);
472throw TraceUtility.ThrowHelperError(new ArgumentNullException("writer"), this);
525throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
555throw TraceUtility.ThrowHelperError(new ArgumentNullException("localName"), this);
557throw TraceUtility.ThrowHelperError(new ArgumentNullException("ns"), this);
563throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenCopied)), this);
565throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenRead)), this);
567throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenWritten)), this);
569throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
572throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InvalidMessageState)), this);
654throw TraceUtility.ThrowHelperError(new ArgumentNullException("writer"), this);
677throw TraceUtility.ThrowHelperError(new ArgumentNullException("writer"), this);
688throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenCopied)), this);
690throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenRead)), this);
692throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MessageHasBeenWritten)), this);
694throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
697throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InvalidMessageState)), this);
780throw TraceUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "IMessageHeaderWithSharedNamespace must use a single lowercase letter prefix.")), this);
787throw TraceUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "IMessageHeaderWithSharedNamespace must use a single lowercase letter prefix.")), this);
1005throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1016throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1027throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1038throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1075throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1316throw TraceUtility.ThrowHelperError(
1357throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1519throw TraceUtility.ThrowHelperError(
1573throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
1592throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
System\ServiceModel\Dispatcher\StreamFormatter.cs (10)
240throw TraceUtility.ThrowHelperError(new ArgumentNullException("buffer"), this.message);
242throw TraceUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", offset,
245throw TraceUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", count,
248throw TraceUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.SFxInvalidStreamOffsetLength, offset + count)), this.message);
315set { throw TraceUtility.ThrowHelperError(new NotSupportedException(), message); }
336throw TraceUtility.ThrowHelperError(new NotSupportedException(), this.message);
339public override void Flush() { throw TraceUtility.ThrowHelperError(new NotSupportedException(), this.message); }
340public override long Seek(long offset, SeekOrigin origin) { throw TraceUtility.ThrowHelperError(new NotSupportedException(), this.message); }
341public override void SetLength(long value) { throw TraceUtility.ThrowHelperError(new NotSupportedException(), this.message); }
342public override void Write(byte[] buffer, int offset, int count) { throw TraceUtility.ThrowHelperError(new NotSupportedException(), this.message); }
System\ServiceModel\Security\ReceiveSecurityHeader.cs (22)
402throw TraceUtility.ThrowHelperError(new ArgumentNullException("value"), this.Message);
406throw TraceUtility.ThrowHelperError(new InvalidOperationException(
421throw TraceUtility.ThrowHelperError(new ArgumentNullException("value"), this.Message);
425throw TraceUtility.ThrowHelperError(new InvalidOperationException(
749throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SecurityHeaderIsEmpty)), this.Message);
876throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.RequiredSignatureMissing)), this.Message);
971throw TraceUtility.ThrowHelperError(new MessageSecurityException(
976throw TraceUtility.ThrowHelperError(new MessageSecurityException(
1204throw TraceUtility.ThrowHelperError(new MessageSecurityException(
1228throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.MissingIdInEncryptedElement)), this.Message);
1372throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.EncryptionNotExpected)), this.Message);
1387throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.EncryptionNotExpected)), this.Message);
1414throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SignatureNotExpected)), this.Message);
1462throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SignatureConfirmationsNotExpected)), this.Message);
1466throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SignatureConfirmationsOccursAfterPrimarySignature)), this.Message);
1535throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SupportingTokenSignaturesNotExpected)), this.Message);
1544throw TraceUtility.ThrowHelperError(new MessageSecurityException(
1560throw TraceUtility.ThrowHelperError(new MessageSecurityException(
1572throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SignatureVerificationFailed)), this.Message);
1594throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.DuplicateTimestampInSecurityHeader)), this.Message);
1637throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCouldNotReadToken, localName, namespaceUri, valueType)), this.Message);
1674throw TraceUtility.ThrowHelperError(new MessageSecurityException(
System\ServiceModel\Security\SecurityVerifiedMessage.cs (8)
75throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
96throw TraceUtility.ThrowHelperError(CreateMessageDisposedException(), this);
134throw TraceUtility.ThrowHelperError(CreateBadStateException("CreateFullBodyReader"), this);
379throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.RequiredMessagePartNotEncrypted, name)), this);
383throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.RequiredMessagePartNotEncryptedNs, name, ns)), this);
391throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.RequiredMessagePartNotSigned, name)), this);
395throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.RequiredMessagePartNotSignedNs, name, ns)), this);
440throw TraceUtility.ThrowHelperError(CreateBadStateException("SetDecryptedBody"), this);
System\ServiceModel\Security\SendSecurityHeader.cs (17)
109throw TraceUtility.ThrowHelperError(new ArgumentNullException("value"), this.Message);
113throw TraceUtility.ThrowHelperError(new InvalidOperationException(
198throw TraceUtility.ThrowHelperError(new ArgumentNullException("value"), this.Message);
202throw TraceUtility.ThrowHelperError(new InvalidOperationException(
371throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.TimestampAlreadySetForSecurityHeader)), this.Message);
399throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.Message);
595throw TraceUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.BasicTokenCannotBeWrittenWithoutEncryption)), this.Message);
751throw TraceUtility.ThrowHelperError(new ArgumentNullException("SignatureParts"), this.Message);
761throw TraceUtility.ThrowHelperError(new ArgumentNullException("EncryptionParts"), this.Message);
788throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.Message);
874throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.Message);
880throw TraceUtility.ThrowHelperError(new InvalidOperationException(
888throw TraceUtility.ThrowHelperError(new InvalidOperationException(
893throw TraceUtility.ThrowHelperError(new InvalidOperationException(
925throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.Message);
956throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.Message);
1005throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.TokenManagerCannotCreateTokenReference)), this.Message);