2101 references to ExceptionUtility
System.ServiceModel.Primitives (2101)
Internals\System\Runtime\MruCache.cs (1)
252throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName));
Internals\System\Text\BinHexEncoding.cs (23)
49throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charCount), SRP.ValueMustBeNonNegative)); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.XmlInvalidBinHexLength, charCount.ToString(NumberFormatInfo.CurrentInfo)))); 63throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("chars")); 65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charIndex), SRP.ValueMustBeNonNegative)); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charIndex), SRP.Format(SRP.OffsetExceedsBufferSize, chars.Length))); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charCount), SRP.ValueMustBeNonNegative)); 71throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charCount), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, chars.Length - charIndex))); 73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(bytes))); 75throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteIndex), SRP.ValueMustBeNonNegative)); 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteIndex), SRP.Format(SRP.OffsetExceedsBufferSize, bytes.Length))); 80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.XmlArrayTooSmall, nameof(bytes))); 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.XmlInvalidBinHexSequence, new string(pch, 0, 2), charIndex + (int)(pch - _chars)))); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.XmlInvalidBinHexSequence, new string(pch, 0, 2), charIndex + (int)(pch - _chars)))); 117throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteCount), SRP.Format(SRP.ValueMustBeInRange, 0, int.MaxValue / 2))); 129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("bytes")); 131throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteIndex), SRP.ValueMustBeNonNegative)); 133throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteIndex), SRP.Format(SRP.OffsetExceedsBufferSize, bytes.Length))); 135throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteCount), SRP.ValueMustBeNonNegative)); 137throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(byteCount), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex))); 140throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("chars")); 142throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charIndex), SRP.ValueMustBeNonNegative)); 144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(charIndex), SRP.Format(SRP.OffsetExceedsBufferSize, chars.Length))); 146throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.XmlArrayTooSmall, "chars"));
Internals\System\Xml\XmlExceptionHelper.cs (1)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(s));
Internals\System\Xml\XmlMtomReader.cs (120)
26throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(encoding)); 52throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(encoding)); 95throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomBufferQuotaExceeded, maxBuffer))); 106throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(encodings)); 111throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(string.Format(CultureInfo.InvariantCulture, "encodings[{0}]", i)); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.MtomContentTypeInvalid, nameof(contentType))); 140throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(stream)); 155throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.MtomMessageInvalidContent)); 192throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomMessageInvalidMimeVersion, header.Version, MimeVersionHeader.Default.Version))); 198throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.MtomMessageContentTypeNotFound)); 202throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomMessageNotMultipart, MtomGlobals.MediaType, MtomGlobals.MediaSubtype))); 206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomMessageNotApplicationXopXml, MtomGlobals.XopType))); 209throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomMessageRequiredParamNotSpecified, MtomGlobals.BoundaryParam))); 211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomBoundaryInvalid, boundary))); 223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.MtomRootContentTypeNotFound)); 227throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomRootNotApplicationXopXml, MtomGlobals.XopMediaType, MtomGlobals.XopMediaSubtype))); 232throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomRootRequiredParamNotSpecified, MtomGlobals.CharsetParam))); 277throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomRootUnexpectedCharset, charset, expectedCharSetStr.ToString()))); 286throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomRootRequiredParamNotSpecified, MtomGlobals.TypeParam))); 288throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomRootUnexpectedType, rootType, expectedType))); 298throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomContentTransferEncodingNotSupported, 308throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomContentTransferEncodingNotPresent, 311throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomInvalidTransferEncodingForMimePart, 322throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomInvalidStartUri, startUri))); 343throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomXopIncludeInvalidXopAttributes, _xmlReader.LocalName, MtomGlobals.XopIncludeNamespace))); 346throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomXopIncludeHrefNotSpecified, MtomGlobals.XopIncludeHrefLocalName))); 369throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomXopIncludeInvalidXopElement, _xmlReader.LocalName, MtomGlobals.XopIncludeNamespace))); 406throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.MtomInvalidEmptyURI)); 415throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomInvalidCIDUri, uri))); 420throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomMimePartReferencedMoreThanOnce, contentID))); 431throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.MtomMessageInvalidContentInMimePart)); 457throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MaxMimePartsExceeded, maxMimeParts, "MtomMessageEncoderBindingElement"))); 466throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomPartNotFound, uri))); 478throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.MtomRootPartNotFound)); 483throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.MtomMessageInvalidContentInMimePart)); 554throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(e); 1144throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(part)); 1146throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 1210throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(buffer)); 1213throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.ValueMustBeNonNegative)); 1215throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, buffer.Length))); 1217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.ValueMustBeNonNegative)); 1219throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1257throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(buffer)); 1260throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.ValueMustBeNonNegative)); 1262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, buffer.Length))); 1264throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.ValueMustBeNonNegative)); 1266throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1302throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(buffer)); 1305throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.ValueMustBeNonNegative)); 1307throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, buffer.Length))); 1309throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.ValueMustBeNonNegative)); 1311throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1328throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(e.Message, e)); 1360throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(chars)); 1363throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.ValueMustBeNonNegative)); 1365throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, chars.Length))); 1367throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.ValueMustBeNonNegative)); 1369throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1771throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(stream)); 1780throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.MimeMessageGetContentStreamCalledAlready)); 1815throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(stream)); 1817throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(boundary)); 1892throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.MimeReaderTruncated)); 2131throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 2153get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); } 2158get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); } 2159set { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); } 2164throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName))); 2174throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName))); 2179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName))); 2185throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(buffer)); 2188throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.ValueMustBeNonNegative)); 2190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, buffer.Length))); 2192throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.ValueMustBeNonNegative)); 2194throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 2201throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); 2206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName))); 2211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName))); 2280throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(name)); 2283throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 2312throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(header)); 2316throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.MimeReaderHeaderAlreadyExists, header.Name))); 2339throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(name)); 2420throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.MimeContentTypeHeaderInvalid)); 2426throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.MimeContentTypeHeaderInvalid)); 2433throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.MimeContentTypeHeaderInvalid)); 2459throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.MimeContentTypeHeaderInvalid)); 2463throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.MimeContentTypeHeaderInvalid)); 2592throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.MimeVersionHeaderInvalid)); 2598throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.MimeVersionHeaderInvalid)); 2632throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(stream)); 2714throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.MimeReaderMalformedHeader)); 2718throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.MimeHeaderInvalidCharacter, (char)(*ptr), ((int)(*ptr)).ToString("X", CultureInfo.InvariantCulture)))); 2743throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.MimeReaderMalformedHeader)); 2753throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.MimeReaderMalformedHeader)); 2788throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.MimeReaderMalformedHeader)); 2800throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(stream)); 2803throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.MimeReaderResetCalledBeforeEOF)); 2849throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(stream)); 2872get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); } 2877get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); } 2878set { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); } 2884throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ReadNotSupportedOnStream, stream.GetType().FullName))); 2891throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, stream.GetType().FullName))); 2902throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ReadNotSupportedOnStream, stream.GetType().FullName))); 2909throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, stream.GetType().FullName))); 2920throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ReadNotSupportedOnStream, stream.GetType().FullName))); 2923throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(buffer)); 2926throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.ValueMustBeNonNegative)); 2928throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.Format(SRP.OffsetExceedsBufferSize, buffer.Length))); 2930throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.ValueMustBeNonNegative)); 2932throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 3005throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); 3010throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); 3015throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, stream.GetType().FullName))); 3092throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.MimeHeaderInvalidCharacter, data[offset], ((int)data[offset]).ToString("X", CultureInfo.InvariantCulture)))); 3126throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.MimeHeaderInvalidCharacter, data[offset], ((int)data[offset]).ToString("X", CultureInfo.InvariantCulture)))); 3129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.MimeReaderMalformedHeader)); 3158throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.MimeHeaderInvalidCharacter, data[offset], ((int)data[offset]).ToString("X", CultureInfo.InvariantCulture))));
Internals\System\Xml\XmlMtomWriter.cs (33)
69throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(encoding)); 71throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(maxSizeInBytes), SRP.ValueMustBeNonNegative)); 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(stream)); 100throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(startInfo)); 106throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MtomBoundaryInvalid, boundary), nameof(boundary))); 128throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.XmlWriterClosed)); 222throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(localName)); 244throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomDataMustNotContainXopInclude, MtomGlobals.XopIncludeLocalName, MtomGlobals.XopIncludeNamespace))); 274throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value")); 292throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("value")); 313throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("buffer")); 317throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(index), SRP.ValueMustBeNonNegative)); 320throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.ValueMustBeNonNegative)); 322throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(count), SRP.Format(SRP.SizeExceedsRemainingBufferSpace, buffer.Length - index))); 343throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.MtomExceededMaxSizeInBytes, maxSize))); 518throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.XmlInvalidStream)); 557throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.XmlInvalidStream)); 1158throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(stream)); 1160throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(boundary)); 1171throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(name)); 1173throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 1206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForStartPreface, state.ToString()))); 1217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForStartPart, state.ToString()))); 1241throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForStartPart, state.ToString()))); 1263throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForClose, state.ToString()))); 1288throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForClose, state.ToString()))); 1329throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(name)); 1331throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 1338throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForHeader, state.ToString()))); 1358throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForContent, state.ToString()))); 1377throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MimeWriterInvalidStateForContent, state.ToString()))); 1414throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.WriteBufferOverflow)); 1466throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.Format(SRP.MimeHeaderInvalidCharacter, c, ((int)c).ToString("X", CultureInfo.InvariantCulture))));
SMDiagnostics\System\ServiceModel\Diagnostics\ExceptionUtility.cs (1)
109DiagnosticUtility.ExceptionUtility.ThrowHelperError(exception);
System\IdentityModel\Claims\Claim.cs (14)
55throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(claimType)); 60throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("claimType", SRP.ArgumentCannotBeEmptyString); 65throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(right)); 70throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("right", SRP.ArgumentCannotBeEmptyString); 124throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(dns)); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(hash)); 145throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(name)); 154throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(rsa)); 163throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(spn)); 173throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(thumbprint)); 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(upn)); 193throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(uri)); 203throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(sid)); 213throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(x500DistinguishedName));
System\IdentityModel\Claims\ClaimComparer.cs (2)
35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(claimType)); 180throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(claim));
System\IdentityModel\Claims\ClaimSet.cs (3)
60throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(claim)); 65throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(comparer)); 86throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(claim));
System\IdentityModel\Claims\DefaultClaimSet.cs (3)
59throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(claim)); 96_issuer = issuer ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(issuer)); 97_claims = claims ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(claims));
System\IdentityModel\Claims\X509CertificateClaimSet.cs (4)
35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(certificate)); 372throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName)); 382throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(x500DistinguishedName)); 629throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName));
System\IdentityModel\CryptoHelper.cs (6)
72throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.CustomCryptoAlgorithmIsNotValidKeyedHashAlgorithm, algorithm))); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 189throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.CustomCryptoAlgorithmIsNotValidHashAlgorithm, algorithm))); 205throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 213throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(algorithm))); 271throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(algorithm)));
System\IdentityModel\HashStream.cs (5)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(hash)); 56throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 86throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 106throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 111throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException());
System\IdentityModel\IdentityModelDictionary.cs (2)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(key))); 93throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(key)));
System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
61throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(claimSet));
System\IdentityModel\Policy\UnconditionalPolicy.cs (3)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(issuance)); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(issuances)); 188throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName));
System\IdentityModel\Psha1DerivedKeyGenerator.cs (5)
17_key = key ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(key)); 24throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(label)); 28throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(nonce)); 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(derivedKeySize), SRP.ValueMustBeNonNegative)); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(position), SRP.Format(SRP.ValueMustBeInRange, 0, _position)));
System\IdentityModel\Selectors\KerberosSecurityTokenProvider.cs (2)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(tokenImpersonationLevel), 37ServicePrincipalName = servicePrincipalName ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(servicePrincipalName));
System\IdentityModel\Selectors\SecurityTokenAuthenticator.cs (4)
23throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token)); 32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token)); 36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SRP.Format(SRP.CannotValidateSecurityTokenType, this, token.GetType()))); 60throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(errorMsg));
System\IdentityModel\Selectors\SecurityTokenProvider.cs (13)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SRP.Format(SRP.TokenProviderUnableToGetToken, this))); 48throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(result)); 54throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SRP.Format(SRP.TokenProviderUnableToGetToken, this))); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenToBeRenewed)); 108throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SRP.Format(SRP.TokenProviderUnableToRenewToken, this))); 118throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenToBeRenewed)); 128throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(result)); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SRP.Format(SRP.TokenProviderUnableToRenewToken, this))); 158throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.TokenRenewalNotSupported, this))); 187throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token)); 197throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token)); 207throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(result)); 225throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.TokenCancellationNotSupported, this)));
System\IdentityModel\Selectors\SecurityTokenResolver.cs (14)
18throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifier)); 23throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.UnableToResolveTokenReference, keyIdentifier))); 32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifier)); 41throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifierClause)); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.UnableToResolveTokenReference, keyIdentifierClause))); 55throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifierClause)); 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifierClause)); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.UnableToResolveKeyReference, keyIdentifierClause))); 78throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifierClause)); 100_tokens = tokens ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokens)); 108throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifierClause)); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifier)); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifierClause)); 189throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifierClause));
System\IdentityModel\Selectors\SecurityTokenSerializer.cs (15)
26throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token)); 44throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 53throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifier)); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 71throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifierClause)); 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 90throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer)); 94throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token)); 103throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 112throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer)); 116throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifier)); 125throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer)); 138throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifierClause));
System\IdentityModel\Selectors\UserNameSecurityTokenProvider.cs (1)
20throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(userName));
System\IdentityModel\Selectors\X509CertificateValidator.cs (9)
77throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(chainPolicy)); 87throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(chainPolicy)); 101throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(certificate)); 112throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(certificate)); 118throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(exception); 203throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(certificate)); 218throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(SRP.Format(SRP.X509ChainBuildFail, 261throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(certificate)); 276throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(exception.Message + " " + ex.Message));
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (1)
26_validator = validator ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(validator));
System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (1)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(certificate));
System\IdentityModel\SignatureResourcePool.cs (1)
22throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm)));
System\IdentityModel\Tokens\AggregateTokenResolver.cs (4)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenResolvers)); 60throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifierClause)); 87throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifier)); 114throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifierClause));
System\IdentityModel\Tokens\BinaryKeyIdentifierClause.cs (3)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(identificationData))); 28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(identificationData), SRP.LengthMustBeGreaterThanZero)); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(offset), SRP.ValueMustBeNonNegative));
System\IdentityModel\Tokens\EncryptedKeyIdentifierClause.cs (1)
39_encryptionMethod = encryptionMethod ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(encryptionMethod));
System\IdentityModel\Tokens\GenericXmlSecurityKeyIdentifierClause.cs (1)
20ReferenceXml = referenceXml ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(referenceXml));
System\IdentityModel\Tokens\GenericXmlSecurityToken.cs (2)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenXml)); 167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenException(SRP.UnableToCreateTokenReference));
System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (4)
23throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(tokenImpersonationLevel), 27ServicePrincipalName = servicePrincipalName ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(servicePrincipalName)); 32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.ProvidedNetworkCredentialsForKerberosHasInvalidUserName); 37_id = id ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(id));
System\IdentityModel\Tokens\KeyInfoSerializer.cs (9)
119throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CannotReadToken, reader.LocalName, reader.NamespaceURI, localReader.GetAttribute(XD.SecurityJan2004Dictionary.ValueType, null)))); 129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.StandardsManagerCannotWriteObject, token.GetType()))); 165throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ErrorDeserializingKeyIdentifierClause))); 210throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ErrorSerializingKeyIdentifier), e)); 219throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.StandardsManagerCannotWriteObject, keyIdentifier.GetType()))); 262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ErrorDeserializingKeyIdentifierClause), e)); 266throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CannotReadKeyIdentifierClause, reader.LocalName, reader.NamespaceURI))); 307throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.ErrorSerializingKeyIdentifierClause, e)); 316throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.StandardsManagerCannotWriteObject, keyIdentifierClause.GetType())));
System\IdentityModel\Tokens\LocalIdKeyIdentifierClause.cs (2)
40throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(localId)); 44throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.LocalIdCannotBeEmpty);
System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (5)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(clauses)); 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(clause))); 86throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.KeyIdentifierCannotCreateKey)); 94throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.NoKeyIdentifierClauseFound, typeof(TClause)), "TClause"));
System\IdentityModel\Tokens\SecurityKeyIdentifierClause.cs (1)
48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.KeyIdentifierClauseDoesNotSupportKeyCreation));
System\IdentityModel\Tokens\SecurityToken.cs (1)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
System\IdentityModel\Tokens\SymmetricKey.cs (2)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(symmetricKey))); 29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.SymmetricKeyLengthTooShort, symmetricKey.Length)));
System\IdentityModel\Tokens\WSSecurityJan2004.cs (6)
82throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(valueTypeUris)); 210throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CannotReadKeyIdentifierClause, reader.LocalName, reader.NamespaceURI))); 247throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.StandardsManagerCannotWriteObject, keyIdentifierClause.GetType()))); 310throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityMessageSerializationException(SRP.UnknownEncodingInKeyIdentifier)); 530throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 547throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer));
System\IdentityModel\Tokens\WSSecurityXXX2005.cs (1)
71throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.StandardsManagerCannotWriteObject, keyIdentifierClause.GetType())));
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (30)
23_certificate = certificate ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(certificate)); 71DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.PrivateKeyNotSupported)); 96DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.PublicKeyNotSupported)); 125throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.MissingPrivateKey)); 130throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm))); 140throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.AlgorithmAndPrivateKeyMisMatch)); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.AlgorithmAndPrivateKeyMisMatch)); 158throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.AlgorithmAndPublicKeyMisMatch)); 180throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.AlgorithmAndPublicKeyMisMatch)); 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 192throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm))); 211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SRP.Format(SRP.UnsupportedAlgorithmForCryptoOperation, 223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 235throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm))); 258throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.AlgorithmAndPublicKeyMisMatch, e)); 261throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SRP.Format(SRP.UnsupportedAlgorithmForCryptoOperation, 273throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.PublicKeyNotDSA)); 284throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.PublicKeyNotRSA)); 290throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 299throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.MissingPrivateKey)); 304throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm))); 333throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.AlgorithmAndPrivateKeyMisMatch, e)); 336throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CryptographicException(SRP.Format(SRP.UnsupportedAlgorithmForCryptoOperation, 348throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.PrivateKeyNotDSA)); 359throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.PrivateKeyNotRSA)); 369throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.PrivateKeyNotRSA)); 375throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 388throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm))); 398throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(algorithm, SRP.Format(SRP.EmptyOrNullArgumentString, nameof(algorithm)));
System\IdentityModel\Tokens\X509IssuerSerialKeyIdentifierClause.cs (3)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(issuerName)); 26throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(issuerSerialNumber)); 38throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(certificate));
System\IdentityModel\Tokens\X509RawDataKeyIdentifierClause.cs (1)
54throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(certificate));
System\IdentityModel\Tokens\X509SecurityToken.cs (3)
52throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(certificate)); 55_id = id ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(id)); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName));
System\IdentityModel\Tokens\X509SubjectKeyIdentifierClause.cs (1)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(certificate));
System\IdentityModel\Tokens\X509ThumbprintKeyIdentifierClause.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(certificate));
System\IdentityModel\Tokens\XmlDsigSep2000.cs (3)
76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.ErrorDeserializingKeyIdentifierClause)); 99throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityMessageSerializationException(SRP.NoKeyInfoClausesToWrite)); 140throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityMessageSerializationException(SRP.InvalidX509RawData));
System\IdentityModel\XD.cs (15)
230throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 424throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 476throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 548throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 618throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 716throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 742throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 855throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 914throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 1005throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 1155throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 1279throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 1320throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 1403throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value)); 1510throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.XDCannotFindValueInDictionaryString, value));
System\ServiceModel\AuditLevel.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\AuditLogLocation.cs (1)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\CallbackBehaviorAttribute.cs (3)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 52throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
System\ServiceModel\ChannelFactory.cs (16)
119throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxChannelFactoryEndpointAddressUri)); 129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxChannelFactoryCannotCreateFactoryWithoutDescription)); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxChannelFactoryNoBindingFoundInConfigOrCode)); 231Endpoint = endpoint ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(endpoint)); 338throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.InnerChannelFactoryWasNotSet)); 354throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(channelType)); 359throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxChannelFactoryTypeMustBeInterface)); 402throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(binding)); 421throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(endpoint)); 455throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(address)); 468throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(address)); 473throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxCreateNonDuplexChannel1, Endpoint.Contract.Name))); 519throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SfxCallbackTypeCannotBeNull, endpoint.Contract.ContractType.FullName))); 528throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SfxCallbackTypeCannotBeNull, endpoint.Contract.ContractType.FullName))); 555throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidStaticOverloadCalledForDuplexChannelFactory1, channelFactory._channelType.Name))); 569throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidStaticOverloadCalledForDuplexChannelFactory1, channelFactory._channelType.Name)));
System\ServiceModel\Channels\AddressHeader.cs (9)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(serializer))); 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(serializer))); 126throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(serializer))); 137throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ExpectedElementMissing, Name, Namespace))); 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(writer))); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(writer))); 205throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(writer))); 239throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(messageVersion))); 284throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(name)));
System\ServiceModel\Channels\AddressHeaderCollection.cs (8)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.MessageHeaderIsNull0)); 41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.MessageHeaderIsNull0)); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(name))); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(ns))); 104throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(name))); 109throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(ns))); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MultipleMessageHeaders, name, ns)));
System\ServiceModel\Channels\Addressing.cs (19)
62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(action))); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(addressingVersion)); 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(dictionaryAction))); 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(addressingVersion)); 194throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(from))); 199throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(addressingVersion)); 293throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(faultTo))); 298throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(addressingVersion)); 411throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(addressingVersion)); 435throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(to))); 617throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(replyTo))); 622throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(addressingVersion))); 723throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(messageId))); 728throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(addressingVersion))); 823throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(messageId))); 828throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(addressingVersion))); 838throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(messageId))); 843throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(addressingVersion))); 848throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(relationshipType)));
System\ServiceModel\Channels\BinaryMessageEncoder.cs (25)
394throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new QuotaExceededException(excMsg)); 431throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(SRP.BinaryEncoderSessionInvalid)); 447throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(SRP.BinaryEncoderSessionMalformed)); 453throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(SRP.BinaryEncoderSessionMalformed)); 465throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(message, inner)); 484throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(SRP.BinaryEncoderSessionMalformed)); 510throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(bufferManager)); 576throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(stream)); 613throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 618throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(bufferManager)); 623throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(maxMessageSize), maxMessageSize, 648throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(messageOffset), messageOffset, 659throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new QuotaExceededException(excMsg)); 727throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(message))); 731throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(stream))); 1017throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(key), key, 1040throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 1066throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(prefix), prefix, 1110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(size), size, 1552throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateMessageDisposedException()); 1564throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateMessageDisposedException()); 1576throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateMessageDisposedException()); 1680throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(ex); 1744throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateBufferDisposedException()); 1779throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateBufferDisposedException());
System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (8)
59_binaryVersion = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(value))); 70throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 75throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(errorMsg)); 93throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 111throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 128throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 146throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 211throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context));
System\ServiceModel\Channels\Binding.cs (18)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("name", SRP.SFXBindingNameCannotBeNullOrEmpty); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(ns)); 54throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, SRP.SFxTimeoutOutOfRange0)); 58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, SRP.SFxTimeoutOutOfRangeTooBig)); 80throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SRP.SFXBindingNameCannotBeNullOrEmpty); 94throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 112throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, SRP.SFxTimeoutOutOfRange0)); 116throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, SRP.SFxTimeoutOutOfRangeTooBig)); 130throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, SRP.SFxTimeoutOutOfRange0)); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, SRP.SFxTimeoutOutOfRangeTooBig)); 158throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, SRP.SFxTimeoutOutOfRange0)); 162throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, SRP.SFxTimeoutOutOfRangeTooBig)); 191throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 240throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 245throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 251throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
System\ServiceModel\Channels\BindingContext.cs (3)
20throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(binding)); 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format( 115throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.NotAllBindingElementsBuilt, builder.ToString())));
System\ServiceModel\Channels\BindingElement.cs (2)
26throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context)); 36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context));
System\ServiceModel\Channels\BindingElementCollection.cs (6)
22throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(elements)); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(elements)); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(elements)); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(bindingElementType)); 148throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 158throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item));
System\ServiceModel\Channels\BindingParameterCollection.cs (2)
22throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parameters)); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parameters));
System\ServiceModel\Channels\BodyWriter.cs (5)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(maxBufferSize), maxBufferSize, 56throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.BodyWriterCanOnlyBeWrittenOnce)); 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.BodyWriterReturnedIsNotBuffered)); 112throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(writer))); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.BodyWriterCanOnlyBeWrittenOnce));
System\ServiceModel\Channels\BufferManager.cs (4)
20throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(maxBufferPoolSize), 26throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(maxBufferSize), 58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(bufferSize), bufferSize, 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(buffer));
System\ServiceModel\Channels\ChannelBase.cs (1)
13Manager = channelManager ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(channelManager));
System\ServiceModel\Channels\ChannelBindingMessageProperty.cs (6)
23_channelBinding = channelBinding ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(channelBinding)); 50throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 60throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(properties)); 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 90throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(properties)); 128throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName));
System\ServiceModel\Channels\ChannelBuilder.cs (1)
51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.TransportBindingElementNotFound));
System\ServiceModel\Channels\ChannelDemuxer.cs (4)
60throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.ValueMustBeGreaterThanZero)); 112throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context)); 123throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context));
System\ServiceModel\Channels\ChannelFactoryBase.cs (4)
112throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(address)); 122throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(address)); 127throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(via)); 163throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ChannelFactoryCannotBeUsedToCreateChannels, GetType().ToString())));
System\ServiceModel\Channels\ChannelParameterCollection.cs (3)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(innerChannel)); 101throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(text)); 136throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(text));
System\ServiceModel\Channels\ChannelReliableSession.cs (6)
374throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(e); 431throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(e); 513throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(e); 733throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmUtilities.CreateCSFaultException( 744throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRP.UnparsableCSResponse, info.ParsingException)); 800throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(exceptionReason));
System\ServiceModel\Channels\ClientReliableChannelBinder.cs (2)
29_channelParameters = channelParameters ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(channelParameters)); 159throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\ServiceModel\Channels\ClientReliableDuplexSessionChannel.cs (4)
1032throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(fault.CreateException()); 1039throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SendCannotBeCalledAfterCloseOutputSession)); 1041throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(GetTerminalException()); 1043throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateClosedException());
System\ServiceModel\Channels\CommunicationObject.cs (7)
233throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 510throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 611throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(exception); 645throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(exception); 676throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(exception); 710throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(exception); 734throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(exception);
System\ServiceModel\Channels\CommunicationObjectManager.cs (1)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString()));
System\ServiceModel\Channels\CreateSequence.cs (5)
79throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new ProtocolException(reason))); 100throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 140throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new ProtocolException(reason))); 155throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new ProtocolException(reason))); 164throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new ProtocolException(reason, e)));
System\ServiceModel\Channels\CreateSequenceResponse.cs (1)
70throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason));
System\ServiceModel\Channels\CustomBinding.cs (7)
22throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(bindingElementsInTopDownChannelStackOrder)); 36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(bindingElementsInTopDownChannelStackOrder)); 49throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(bindingElementsInTopDownChannelStackOrder)); 63throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(bindingElements)); 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(binding)); 90throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(binding)); 94throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(elements));
System\ServiceModel\Channels\DelegatingMessage.cs (1)
13InnerMessage = innerMessage ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(innerMessage));
System\ServiceModel\Channels\DelegatingStream.cs (1)
20BaseStream = stream ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(stream));
System\ServiceModel\Channels\DuplexChannel.cs (5)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 131throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 160throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\ServiceModel\Channels\FaultConverter.cs (6)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 28throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(fault)); 39throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(error); 48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(error); 65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(error); 74throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(error);
System\ServiceModel\Channels\InputChannel.cs (1)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateReceiveTimedOutException(channel, timeout));
System\ServiceModel\Channels\IntDecoder.cs (4)
20throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.FramingValueNotAvailable)); 41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.FramingValueNotAvailable)); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(SRP.FramingSizeTooLarge)); 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(size), size, SRP.ValueMustBePositive));
System\ServiceModel\Channels\IntEncoder.cs (1)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value,
System\ServiceModel\Channels\InternalDuplexBindingElement.cs (2)
19LocalAddress = localAddress ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(localAddress)); 20Filter = filter ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(filter));
System\ServiceModel\Channels\LifetimeManager.cs (5)
62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString())); 239throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.SFxCloseTimedOut1, timeout))); 241throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString())); 250throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.SFxCloseTimedOut1, timeout))); 252throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString()));
System\ServiceModel\Channels\LocalClientSecuritySettings.cs (14)
50throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 91throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 97throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 117throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 123throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 143throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 149throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 184throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 208throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 214throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value,
System\ServiceModel\Channels\MaxMessageSizeStream.cs (2)
114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateMaxReceivedMessageSizeExceededException(_maxMessageSize)); 139throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateMaxSentMessageSizeExceededException(_maxMessageSize));
System\ServiceModel\Channels\Message.cs (31)
125throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(version))); 130throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(serializer))); 145throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(body)); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(version)); 160throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(version))); 165throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(body))); 175throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(version))); 180throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(body))); 190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(version))); 200throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(version))); 215throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(envelopeReader))); 220throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(version))); 231throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(version))); 236throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(faultCode))); 241throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(reason))); 251throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(version))); 256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(faultCode))); 261throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(reason))); 271throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(fault))); 276throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(version))); 307throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(serializer))); 988throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.InvalidReaderPositionOnCreateMessage, "reader")); 1016throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.InvalidReaderPositionOnCreateMessage, "reader")); 1183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(ex); 1264throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MessageBodyReaderInvalidReadState, bodyReader.ReadState.ToString()))); 1296throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SRP.MessageVersionUnknown)); 1301throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SRP.MessageBodyMissing)); 1312throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SRP.MessageBodyMissing)); 1480throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(ex); 1830throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(ex); 2006throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(message, inner));
System\ServiceModel\Channels\MessageBuffer.cs (8)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(stream))); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateBufferDisposedException()); 187throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateBufferDisposedException()); 199throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(stream))); 206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateBufferDisposedException()); 222throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateBufferDisposedException()); 251throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateBufferDisposedException()); 310throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateBufferDisposedException());
System\ServiceModel\Channels\MessageEncoder.cs (2)
81throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(MaxMessageSizeStream.CreateMaxReceivedMessageSizeExceededException(maxBufferSize)); 142throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(contentType)));
System\ServiceModel\Channels\MessageEncodingBindingElement.cs (3)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(context))); 42throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(context))); 55throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context));
System\ServiceModel\Channels\MessageFault.cs (17)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(serializer))); 54throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(code))); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(reason))); 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(actor))); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(node))); 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(message))); 110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 115throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 120throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 189throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(serializer))); 199throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.ExtraContentIsPresentInFaultDetail)); 209throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.FaultDoesNotHaveAnyDetail)); 256throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(headers)); 296throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer)); 301throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(version)); 318throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EnvelopeVersionUnknown, version.ToString()))); 730throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.AtLeastOneFaultReasonMustBeSpecified));
System\ServiceModel\Channels\MessageHeader.cs (17)
46throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(messageVersion)); 107throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(writer))); 112throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(messageVersion))); 124throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(writer))); 129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(messageVersion))); 145throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(writer))); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(messageVersion))); 216throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(serializer))); 320throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(exception.Message, null)); 366_actor = actor ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(actor)); 395throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(name))); 400throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFXHeaderNameCannotBeNullOrEmpty, "name")); 405throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(ns)); 420throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(messageVersion)); 437throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EnvelopeVersionUnknown, messageVersion.Envelope.ToString()))); 489throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MessageHeaderVersionNotSupported, GetType().FullName, messageVersion.ToString()), "version")); 626throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(messageVersion)));
System\ServiceModel\Channels\MessageHeaders.cs (63)
51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(version))); 63throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(reader))); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(collection)); 398throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 457throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(headerInfo))); 466throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException( 555throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(message))); 565throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(collection)); 570throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MessageHeaderVersionMismatch, collection.MessageVersion.ToString(), MessageVersion.ToString()), "collection")); 575throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 599throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidEnumValue, header.HeaderType))); 607throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(message))); 617throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(collection))); 630throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(array)); 635throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 669throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidEnumValue, kind))); 683throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(name))); 688throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(ns))); 713throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 741throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(SRP.Format(SRP.MultipleMessageHeadersWithActor, name, ns, actors[0]), name, ns, true)); 744throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(SRP.Format(SRP.MultipleMessageHeaders, name, ns), name, ns, true)); 759throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(name))); 764throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(ns))); 769throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(actors))); 786throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(SRP.Format(SRP.MultipleMessageHeadersWithActor, name, ns, actors[0]), name, ns, true)); 789throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(SRP.Format(SRP.MultipleMessageHeaders, name, ns), name, ns, true)); 808throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateDuplicateHeaderException(kind)); 833throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 972throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(SRP.Format(SRP.HeaderNotFound, name, ns), name, ns)); 982throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(serializer))); 988throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(SRP.Format(SRP.HeaderNotFound, name, ns), name, ns)); 998throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1011throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(serializer))); 1086throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1096throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1106throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1124throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidEnumValue, _headers[headerIndex].HeaderType))); 1132throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(relationshipType))); 1217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1233throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidEnumValue, _headers[index].HeaderType))); 1267throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(actors))); 1293throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1298MessageVersion = version ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(version)); 1361throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(header))); 1366throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MessageHeaderVersionNotSupported, 1398throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1445throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(headerInfo))); 1472throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1550throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(headerInfo))); 1559throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException( 1572throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(name))); 1577throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(ns))); 1594throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1612throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1619throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(header)); 1682throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(relationshipType)); 1770throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer)); 1775throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1789throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidEnumValue, _headers[headerIndex].HeaderType))); 1802throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer)); 1807throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1821throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidEnumValue, _headers[headerIndex].HeaderType)));
System\ServiceModel\Channels\MessageProperties.cs (20)
49throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(array))); 57throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(string.Empty, SRP.Format(SRP.ObjectDisposed, GetType().ToString()))); 73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MessagePropertyNotFound, name))); 338throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(property))); 397throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(properties)); 435throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(properties)); 496throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(name))); 528throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.MessagePropertyReturnedNullCopy)); 628throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(name))); 692throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(name))); 721throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.DuplicateMessageProperty, name))); 771throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException()); 817throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(array))); 822throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.MessagePropertiesArraySize0)); 827throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(index), index, 876throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("pair.Value")); 891throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("pair.Value")); 896throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("pair.Key")); 973throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("pair.Value")); 978throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("pair.Key"));
System\ServiceModel\Channels\MessageVersion.cs (8)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(envelopeVersion)); 47throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(addressingVersion)); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("addressingVersion", 86throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("addressingVersion", 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("addressingVersion", 104throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("envelopeVersion", 166throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(messageVersion)); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "MessageVersion.Addressing cannot be null")));
System\ServiceModel\Channels\MtomMessageEncoder.cs (15)
60throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, "Invalid MessageVersion"))); 219throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 224throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 283throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(version)); 285throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writeEncoding)); 344throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(contentType))); 365throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(bufferManager)); 400throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(stream))); 458throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 460throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(bufferManager)); 462throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(maxMessageSize), maxMessageSize, 465throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(messageOffset), messageOffset, 548throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(message))); 649throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 654throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(
System\ServiceModel\Channels\MtomMessageEncodingBindingElement.cs (10)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(messageVersion)); 28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MtomEncoderBadMessageVersion, messageVersion.ToString()), nameof(messageVersion))); 31throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writeEncoding)); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 126throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 143throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 147throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MtomEncoderBadMessageVersion, value.ToString()), nameof(value))); 178throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context));
System\ServiceModel\Channels\OpenCollectionAsyncResult.cs (1)
38throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(_exception);
System\ServiceModel\Channels\OutputChannel.cs (6)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 104throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 109throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\ServiceModel\Channels\ProducerConsumerStream.cs (1)
263throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
System\ServiceModel\Channels\QueuedObjectPool.cs (1)
40throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(batchAllocCount)));
System\ServiceModel\Channels\ReliableChannelBinder.cs (11)
527throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(e); 623throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 695throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(e); 707throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 800throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(timeout), timeout, 811throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 816throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(timeout), timeout, 883throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 1529throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(e); 1749_tcs.TrySetException(DiagnosticUtility.ExceptionUtility.ThrowHelperError(exception)); 1757_tcs.TrySetException(DiagnosticUtility.ExceptionUtility.ThrowHelperError(exception));
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (9)
56throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.TimeoutOnOperation, timeout))); 383throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(GetException()); 403throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.TimeoutOnOperation, timeout))); 426throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(GetException()); 840throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 881throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 907throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1251throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 2044throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (3)
419throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(fault.CreateException()); 604throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(GetTerminalException()); 606throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateClosedException());
System\ServiceModel\Channels\ReliableRequestSessionChannel.cs (5)
456throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(fault.CreateException()); 746throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(_parent.GetInvalidAddException()); 809throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(_parent.CreateClosedException()); 813throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(_parent.GetTerminalException()); 817throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.TimeoutOnRequest, _originalTimeout)));
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (15)
56throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 90throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 108throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, 124throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 140throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 160throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 165throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 196throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context)); 283throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context)); 345throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("TChannel", SRP.Format(SRP.ChannelTypeNotSupported, typeof(TChannel))); 351throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context)); 391throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 411throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\ServiceModel\Channels\RequestChannel.cs (3)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(to)); 245throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 250throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\ServiceModel\Channels\RequestContextBase.cs (5)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(_requestMessageException); 113throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(timeout), timeout, SRP.ValueMustBeNonNegative)); 186throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationObjectAbortedException(SRP.RequestContextAborted)); 190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName)); 196throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ReplyAlreadySent));
System\ServiceModel\Channels\SecurityBindingElement.cs (16)
54throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(elementToBeCloned)); 100throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 115_messageSecurityVersion = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(value))); 131_defaultAlgorithmSuite = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(value))); 147throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 280throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(factory))); 285throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(credentialsManager))); 329throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context)); 334throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.ChannelTypeNotSupported, typeof(TChannel)), nameof(TChannel))); 340throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.EncodingBindingElementDoesNotHandleReaderQuotas)); 366throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context)); 427throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context)); 483throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(version)); 508throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(version)); 540throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("issuedTokenParameters"); 574throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(bootstrapSecurity));
System\ServiceModel\Channels\SecurityChannelFactory.cs (4)
241throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 299throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ExtendedProtectionPolicyCustomChannelBindingNotSupported))); 453throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(faultException); 602throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(faultException);
System\ServiceModel\Channels\SecurityHeaderLayout.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Channels\SequenceRangeCollection.cs (3)
169public override SequenceRange this[int index] => throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(index))); 194throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(index), index, 255throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(index)));
System\ServiceModel\Channels\ServiceChannel.cs (29)
53Binder = binder ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(binder)); 91_endpointDispatcher = endpointDispatcher ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(endpointDispatcher)); 289throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, message)); 293throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, SRP.SFxTimeoutOutOfRangeTooBig)); 538throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxCallbackRequestReplyInOrder1, typeof(CallbackBehaviorAttribute).Name))); 545throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxNonInitiatingOperation1, operation.Name))); 550throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxTerminatingOperationAlreadyCalled1, _terminatingOperationName))); 555throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRP.SFxClientOutputSessionAutoClosed)); 765throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SRP.SFxServerDidNotReply)); 787throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxInvalidCallbackIAsyncResult)); 800throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("result", SRP.AsyncEndCalledOnWrongChannel); 805throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("result", SRP.AsyncEndCalledWithAnIAsyncResult); 941throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(error); 955throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(fe); 1019throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(exception); 1055throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new ChannelTerminatedException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text)); 1064throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SecurityAccessDeniedException(fault.Reason.GetMatchingTranslation(CultureInfo.CurrentCulture).Text)); 1082throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new FaultException<ExceptionDetail>(detail, fault.Reason, fault.Code, action)); 1084throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new FaultException(fault, action)); 1088throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new ProtocolException( 1101throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(error); 1109throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 1121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(error); 1140throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(error); 1148throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxCannotCallAutoOpenWhenExplicitOpenCalled)); 1183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 1429throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.channelIsNotAvailable0)); 1435throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.channelDoesNotHaveADuplexSession0)); 1905throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SRP.SFxServerDidNotReply));
System\ServiceModel\Channels\ServiceChannelFactory.cs (6)
27_clientRuntime = clientRuntime ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(clientRuntime)); 99throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(serviceEndpoint)); 137throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 159throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 216throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(ChannelRequirements.CantCreateChannelException( 369throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxChannelFactoryTypeMustBeInterface));
System\ServiceModel\Channels\ServiceChannelProxy.cs (6)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.FailedToCreateTypedProxy, typeof(TChannel)))); 83throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SFxMethodNotSupported1, method.Name))); 87throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SFxMethodNotSupportedOnCallback1, method.Name))); 130throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(args)); 135throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidTypedProxyMethodHandle, _proxiedType.Name))); 157throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "Invalid proxy method type")));
System\ServiceModel\Channels\TextMessageEncoder.cs (11)
87throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 221throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRP.EncoderBadContentType, e)); 229throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRP.Format(SRP.EncoderUnrecognizedCharSet, charSet))); 270throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writeEncoding)); 279_version = version ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(version)); 305throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 363throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(contentType)); 405throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(bufferManager))); 448throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(stream))); 495throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(message))); 557throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(message)));
System\ServiceModel\Channels\TextMessageEncodingBindingElement.cs (8)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writeEncoding)); 38_messageVersion = messageVersion ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(messageVersion)); 64throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 99throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 114_messageVersion = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 128throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 155throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context));
System\ServiceModel\Channels\TimeoutStream.cs (1)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(stream), SRP.StreamDoesNotSupportTimeout);
System\ServiceModel\Channels\TransmissionStrategy.cs (2)
727throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageNumberRolloverFault(_id).CreateException()); 789throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(_exception);
System\ServiceModel\Channels\TransportBindingElement.cs (3)
60throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 78throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context));
System\ServiceModel\Channels\TransportChannelFactory.cs (2)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.MultipleMebesInParameters)); 166throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("via", SRP.Format(SRP.InvalidUriScheme,
System\ServiceModel\Channels\TransportDefaults.cs (1)
73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.MessageTextEncodingNotSupported, charSet), "encoding"));
System\ServiceModel\Channels\TransportOutputChannel.cs (2)
108throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 135throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value));
System\ServiceModel\Channels\TransportSecurityBindingElement.cs (4)
71throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context)); 76throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(credentialsManager)); 117throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SecureConversationSecurityTokenParametersRequireBootstrapBinding)); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context));
System\ServiceModel\Channels\TransportSecurityHelpers.cs (2)
143throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format( 164throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.NoUserNameTokenProvided));
System\ServiceModel\Channels\UriGenerator.cs (2)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(scheme))); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.UriGeneratorSchemeMustNotBeEmpty, "scheme"));
System\ServiceModel\Channels\WsrmFault.cs (1)
564throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(
System\ServiceModel\Channels\WsrmMessageInfo.cs (29)
304throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 449throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(SRP.NoActionNoSequenceHeaderReason, messageVersion.Addressing.Namespace, AddressingStrings.Action, false)); 453throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 503throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 508throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 566throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 624throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason)); 652throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 662throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason)); 706throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new ProtocolException(reason))); 723throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new ProtocolException(reason))); 755throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WsrmMessageInfo.CreateInternalFaultException(faultReply, reason, new ProtocolException(reason))); 775throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason)); 780throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 819throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason)); 850throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 860throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(reason)); 933throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException( 952throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException( 1121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1157throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1172throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1185throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1212throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1233throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1239throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException( 1250throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(
System\ServiceModel\ClientBase.cs (11)
62throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(binding)); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(remoteAddress)); 89throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(endpoint)); 111throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(callbackInstance)); 116throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(binding)); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(remoteAddress)); 212throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxImmutableClientBaseCacheSetting, typeof(TChannel).ToString()))); 796throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(beginOperationDelegate)); 800throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(endOperationDelegate)); 906throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxChannelFactoryEndpointAddressUri)); 954throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SFxMethodNotSupported1, methodName)));
System\ServiceModel\DeliveryRequirementsAttribute.cs (8)
39throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 54throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(description)); 56throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(endpoint)); 88throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 101throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 115throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 122throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
System\ServiceModel\Description\CallbackDebugBehavior.cs (1)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
System\ServiceModel\Description\ClientCredentials.cs (7)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(other)); 162throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(NotImplemented.ByDesignWithMessage(SRP.Format(SRP.CloneNotImplementedCorrectly, GetType(), (result != null) ? result.ToString() : "null"))); 175throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(bindingParameters)); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MultipleSecurityCredentialsManagersInChannelBindingParameters, otherCredentialsManager))); 188throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 197throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(serviceEndpoint)); 202throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("serviceEndpoint.Binding");
System\ServiceModel\Description\ContractDescription.cs (14)
60throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 95throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 118throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 137throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(contractType)); 148throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(contractType)); 153throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(serviceType)); 165throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(contractType)); 170throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(serviceImplementation)); 201throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 227throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 233throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
System\ServiceModel\Description\DataContractSerializerOperationBehavior.cs (4)
142throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(description)); 147throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(dispatch)); 166throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(description)); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(proxy));
System\ServiceModel\Description\DispatcherBuilder.cs (2)
176throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxMultipleContractStarOperations0)); 309throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(error);
System\ServiceModel\Description\FaultDescription.cs (2)
20Action = action ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(action))); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value)));
System\ServiceModel\Description\MessageDescription.cs (2)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(direction))); 99throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value)));
System\ServiceModel\Description\MessagePartDescription.cs (2)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(name), SRP.SFxParameterNameCannotBeNull); 89throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value)));
System\ServiceModel\Description\MetadataConversionError.cs (1)
15Message = message ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message));
System\ServiceModel\Description\MetadataLocation.cs (1)
35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.SFxMetadataReferenceInvalidLocation, value));
System\ServiceModel\Description\OperationDescription.cs (5)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(name)); 31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 35_declaringContract = declaringContract ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(declaringContract)); 107throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(DeclaringContract)); 178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxOperationMustHaveOneOrTwoMessages, Name)));
System\ServiceModel\Description\OperationDescriptionCollection.cs (2)
45throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 54throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item));
System\ServiceModel\Description\ServiceEndpoint.cs (7)
28_contract = contract ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(contract)); 33_contract = contract ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(contract)); 66_contract = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 123throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", SRP.UriMustBeAbsolute); 136throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 173throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.AChannelServiceEndpointSBindingIsNull0)); 177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.AChannelServiceEndpointSContractIsNull0));
System\ServiceModel\Description\ServiceEndpointCollection.cs (11)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(contractType)); 39throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(contractName)); 57throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(contractType)); 61throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(bindingName)); 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(contractName)); 85throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(bindingName)); 106throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(address)); 124throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(contractType)); 144throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(contractName)); 164throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 173throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item));
System\ServiceModel\Description\ServiceReflector.cs (23)
151throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "Cannot generate unique name for name {0}", baseName))); 159throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.SFXUnvalidNamespaceValue, ns, propName)); 168throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(paramName, SRP.Format(SRP.SFXUnvalidNamespaceParam, ns)); 304throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(e.Message, "name")); 425throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxContractInheritanceRequiresInterfaces2, service, t))); 432throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ServicesWithoutAServiceContractAttributeCan2, operationContractProviderType.Name, method.Name, service.FullName))); 442throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxContractInheritanceRequiresInterfaces, service, t))); 524throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 529throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 538throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 543throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 574throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.tooManyAttributesOfTypeOn2, attrType, attrProvider.ToString()))); 587throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.couldnTFindRequiredAttributeOfTypeOn2, typeof(T), attrProvider.ToString()))); 607throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxDisallowedAttributeCombination, attrProvider, attrType.FullName, otherType.FullName))); 619throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.couldnTFindRequiredAttributeOfTypeOn2, typeof(T), attrProvider.ToString()))); 640throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.AttemptedToGetContractTypeForButThatTypeIs1, interfaceType.Name))); 660throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 702throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 711throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 830throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.NoEndMethodFoundForAsyncBeginMethod3, beginMethod.Name, beginMethod.DeclaringType.FullName, endMethodName))); 834throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.MoreThanOneEndMethodFoundForAsyncBeginMethod3, beginMethod.Name, beginMethod.DeclaringType.FullName, endMethodName))); 845throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidAsyncEndMethodSignatureForMethod2, endMethod.Name, endMethod.DeclaringType.FullName))); 878throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.InvalidAsyncBeginMethodSignatureForMethod2, method.Name, method.DeclaringType.FullName)));
System\ServiceModel\Description\TypedMessageConverter.cs (5)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("messageContract")); 48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("messageContract")); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.SFxMessageContractAttributeRequired, messageContract), "messageContract")); 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("typedMessage")); 107throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxActionMismatch, this.Action, message.Headers.Action)));
System\ServiceModel\Description\TypeLoader.cs (53)
111throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 143throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format( 148throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format( 379throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxKnownTypeAttributeUnknownMethod3, provider, knownTypeAttribute.MethodName, type.FullName))); 384throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxKnownTypeAttributeReturnType3, provider, knownTypeAttribute.MethodName, type.FullName))); 397throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxKnownTypeAttributeInvalid1, provider.ToString()))); 478throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 489throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 499throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 695throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 718throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.SFxInvalidCallbackContractType, callbackType.Name))); 737throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 743throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 795throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 871throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 895throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.CannotHaveTwoOperationsWithTheSameName3, method1Name, method2Name, reflectionInfo.iface))); 901throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.CannotHaveTwoOperationsWithTheSameName3, method1Name, method2Name, reflectionInfo.iface))); 907throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.CannotHaveTwoOperationsWithTheSameName3, method1Name, method2Name, reflectionInfo.iface))); 991throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.OneWayAndFaultsIncompatible2, methodInfo.DeclaringType.FullName, operationName.EncodedName))); 1074throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ServiceOperationsMarkedWithIsOneWayTrueMust0)); 1079throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.OneWayOperationShouldNotSpecifyAReplyAction1, operationName))); 1105throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 1111throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 1217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxMultipleUnknownHeaders, methodInfo, methodInfo.DeclaringType))); 1243throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidMessageContractSignature, methodName))); 1248throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidMessageContractSignature, methodName))); 1258throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidMessageContractException(SRP.Format(SRP.SFxDuplicateMessageParts, partDescription.Name, partDescription.Namespace))); 1329throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxMessageContractBaseTypeNotValid, baseType, typedMessageType))); 1512throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidMessageHeaderArrayType, defaultName))); 1524throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxStaticMessageHeaderPropertiesNotAllowed, defaultName))); 1609throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidMessageContractException(SRP.Format(SRP.SFxDuplicateMessageParts, partDescription.Name, partDescription.Namespace))); 1650throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1666throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1683throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1698throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1712throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1727throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1742throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1759throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1791throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1806throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1820throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1833throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1847throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1861throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1877throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1908throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1924throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1939throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1953throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1968throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 1983throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 2000throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (23)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(operation)); 129throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(description)); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(dispatch)); 154throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(description)); 159throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(proxy)); 387throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxKnownTypeNull, Operation.Name))); 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))); 578throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxRpcMessageMustHaveASingleBody, Operation.Name, message.MessageName))); 585throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxBodyObjectTypeCannotBeInherited, bodyObjectType.FullName))); 590throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxBodyObjectTypeCannotBeInterface, bodyObjectType.FullName, typeof(IEnumerable).FullName))); 595throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxBodyObjectTypeCannotBeInterface, bodyObjectType.FullName, typeof(IXmlSerializable).FullName))); 692throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxFaultTypeAnonymous, Operation.Name, fault.DetailType.FullName))); 952FaultContractInfo = faultContractInfo ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(faultContractInfo)); 954FaultContractElementName = faultContractElementName ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(faultContractElementName)); 1062throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxMultiplePartsNotAllowedInEncoded, elementName.DecodedName, ns))); 1114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidSoapAttribute, invalidAttributeType, elementName.DecodedName))); 1163throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(isWrapped ? SRP.SFxInvalidXmlAttributeInWrapped : SRP.SFxInvalidXmlAttributeInBare, invalidAttributeType, elementName.DecodedName))); 1168throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxXmlArrayNotAllowedForMultiple, elementName.DecodedName, ns)));
System\ServiceModel\Diagnostics\ActivityIdHeader.cs (3)
68throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 105throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer));
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
457DiagnosticUtility.ExceptionUtility.ThrowHelperError(exception);
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (10)
159throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 333throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(e); 449throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateOuterExceptionWithEndpointsInformation(e)); 525throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateOuterExceptionWithEndpointsInformation(e)); 544throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateOuterExceptionWithEndpointsInformation(e)); 625throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(error); 652throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 669throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(error); 693throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 710throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item));
System\ServiceModel\Dispatcher\ChannelHandler.cs (4)
255throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, "No DispatchOperationRuntime found to process message."))); 260throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxNoEndpointMatchingAddressForConnectionOpeningMessage, message.Headers.Action, "Open"))); 514throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxNonExceptionThrown)); 838throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\ServiceModel\Dispatcher\ClientOperation.cs (2)
53_parent = parent ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parent)); 54Name = name ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(name));
System\ServiceModel\Dispatcher\ClientRuntime.cs (10)
71DispatchRuntime = dispatchRuntime ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(dispatchRuntime)); 167_identityVerifier = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 245throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(text)); 299throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(text)); 499throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 516throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 549throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 554throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.SFxMismatchedOperationParent); 571throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 576throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.SFxMismatchedOperationParent);
System\ServiceModel\Dispatcher\ConcurrencyBehavior.cs (1)
202throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(e);
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (12)
80throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(description)); 93throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxKnownTypeNull, description.Name))); 224throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(writer))); 229throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(parameters))); 295throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 414throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(reader))); 419throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(parameters))); 436throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(SRP.Format(SRP.SFxInvalidMessageBody, messageInfo.WrapperName, messageInfo.WrapperNamespace, reader.NodeType, reader.Name, reader.NamespaceURI))); 525throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 530throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException( 535throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 543throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\ServiceModel\Dispatcher\DispatchOperation.cs (2)
24Parent = parent ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parent)); 25Name = name ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(name));
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (7)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(operation)); 29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.RuntimeRequiresInvoker0)); 33Parent = parent ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parent)); 49throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.DispatchRuntimeRequiresFormatter0, Name))); 218throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.SFxInvalidAsyncResultState0); 274throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidReplyAction, Name, reply.Headers.Action ?? "{NULL}", ReplyAction))); 325throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\ServiceModel\Dispatcher\DispatchRuntime.cs (13)
34ClientRuntime = proxyRuntime ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(proxyRuntime)); 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(value))); 205throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 409throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException()); 414throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException()); 438throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 455throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 488throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 492throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.SFxMismatchedOperationParent); 509throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 513throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.SFxMismatchedOperationParent); 525throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxCannotActivateCallbackInstace)); 535throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxCannotActivateCallbackInstace));
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (3)
104_identityVerifier = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 404throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SPS_InvalidAsyncResult)); 769throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(_parent.GetReceiveTimeoutException(timeout));
System\ServiceModel\Dispatcher\EndpointDispatcher.cs (4)
77throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(error); 80ChannelDispatcher = channelDispatcher ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(channelDispatcher)); 88throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(channelDispatcher)); 94throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(error);
System\ServiceModel\Dispatcher\ErrorBehavior.cs (3)
210throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(e); 246throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(e); 257throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(e);
System\ServiceModel\Dispatcher\FaultContractInfo.cs (2)
23Action = action ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(action)); 24Detail = detail ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(detail));
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
159throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SRP.ExtraContentIsPresentInFaultDetail));
System\ServiceModel\Dispatcher\HeaderFilter.cs (1)
20throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(buffer));
System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (5)
96throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(e); 125throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(e); 163throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(e); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException 211throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(e);
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (7)
125throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(e); 168throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(e); 360throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.SFxInvalidAsyncResultState0); 583throw DiagnosticUtility.ExceptionUtility.ThrowHelperFatal(e.Message, e); 683throw DiagnosticUtility.ExceptionUtility.ThrowHelperFatal(e.Message, e); 872throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(e); 959throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxActionDemuxerDuplicate, existingOperation.Name, operation.Name, action)));
System\ServiceModel\Dispatcher\InputChannelBinder.cs (1)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(channel));
System\ServiceModel\Dispatcher\InstanceBehavior.cs (1)
72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxNoDefaultConstructor));
System\ServiceModel\Dispatcher\ListenerBinder.cs (1)
50throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.UnknownListenerType1, listener.Uri.AbsoluteUri)));
System\ServiceModel\Dispatcher\ListenerHandler.cs (2)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(listenerBinder)); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(channelDispatcher));
System\ServiceModel\Dispatcher\MessageOperationFormatter.cs (8)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(message))); 37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxParametersMustBeEmpty)); 47throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(message))); 57throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxParameterMustBeArrayOfOneElement)); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxResultMustBeMessage)); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxParametersMustBeEmpty)); 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(parameters))); 87throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxParameterMustBeMessage));
System\ServiceModel\Dispatcher\MessageRpc.cs (2)
468throw DiagnosticUtility.ExceptionUtility.ThrowHelperFatal(e.Message, e); 576throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(error);
System\ServiceModel\Dispatcher\OperationFormatter.cs (20)
114throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 155throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 160throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 174throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxMessageContractRequiresDefaultConstructor, messageContractType.FullName), mme)); 182throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 216throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 272throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(messageVersion)); 277throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parameters)); 308throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(messageVersion)); 313throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parameters)); 528throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxDocEncodedNotSupported, operation.Name))); 543throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxTypedMessageCannotBeRpcLiteral, operation.Name))); 559throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxTypedOrUntypedMessageCannotBeMixedWithParameters, operation.Name))); 564throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxTypedOrUntypedMessageCannotBeMixedWithVoidInRpc, operation.Name))); 625throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(description))); 645_instance = instance ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(SRP.Format(SRP.SFxTypedMessageCannotBeNull, description.Action))); 853throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateBufferDisposedException());
System\ServiceModel\Dispatcher\OperationInvokerBehavior.cs (2)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(dispatch)); 33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(description));
System\ServiceModel\Dispatcher\OutputChannelBinder.cs (1)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(channel));
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (28)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(description)); 218throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 244throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 268throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxInvalidUseOfPrimitiveOperationFormatter)); 294throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(description)); 376throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxMessagePartDescriptionMissingType, bodyDescription.Name, bodyDescription.Namespace))); 445throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(messageVersion)); 450throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parameters)); 460throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(messageVersion)); 465throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parameters)); 475throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(message))); 492throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(SRP.SFxInvalidMessageBodyEmptyMessage)); 505throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 510throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 515throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 524throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(message))); 541throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(SRP.SFxInvalidMessageBodyEmptyMessage)); 553throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 560throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 567throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 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))); 653throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 732throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 912throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxInvalidUseOfPrimitiveOperationFormatter)); 943throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxInvalidUseOfPrimitiveOperationFormatter)); 1004throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxInvalidUseOfPrimitiveOperationFormatter)); 1036throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxInvalidUseOfPrimitiveOperationFormatter));
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (8)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(operation)); 39_parent = parent ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parent)); 80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ClientRuntimeRequiresFormatter0, Name))); 174throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(e); 182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(SRP.Format(SRP.SFxHeaderNotUnderstood, headersNotUnderstood[0].Name, headersNotUnderstood[0].Namespace))); 212throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(e); 235throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxProxyRuntimeMessageCannotBeNull, Name))); 241throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidRequestAction, Name, rpc.Request.Headers.Action ?? "{NULL}", Action)));
System\ServiceModel\Dispatcher\ReplyChannelBinder.cs (2)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(channel)); 48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(NotImplemented.ByDesign);
System\ServiceModel\Dispatcher\RequestChannelBinder.cs (8)
20throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(channel)); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(NotImplemented.ByDesign); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(NotImplemented.ByDesign); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(NotImplemented.ByDesign); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(NotImplemented.ByDesign); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(NotImplemented.ByDesign); 126throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(NotImplemented.ByDesign); 131throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(NotImplemented.ByDesign);
System\ServiceModel\Dispatcher\SharedRuntimeState.cs (2)
41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxImmutableServiceHostBehavior0)); 45throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxImmutableChannelFactoryBehavior0));
System\ServiceModel\Dispatcher\StreamFormatter.cs (7)
77throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(PartName); 94throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(PartName); 217throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidStreamInTypedMessage, messageDescription.MessageName))); 221throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidStreamInRequest, operationName))); 225throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInvalidStreamInResponse, operationName))); 394throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new IOException(SRP.Format(SRP.SFxStreamIOException), ex)); 402throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(SRP.Format(
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (5)
23Method = method ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(method))); 58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxInvalidCallbackIAsyncResult)); 72throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxNoServiceObject)); 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInputParametersToServiceNull, _inputParameterCount))); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxInputParametersToServiceInvalid, _inputParameterCount, inputs.Length)));
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (6)
27Method = taskMethod ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(taskMethod))); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SFxInvalidCallbackIAsyncResult)); 130throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 138throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 213throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("task");
System\ServiceModel\Dispatcher\ThreadBehavior.cs (1)
121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(text));
System\ServiceModel\Dispatcher\XmlSerializerFaultFormatter.cs (1)
34_xmlSerializerFaultContractInfos = xmlSerializerFaultContractInfos ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(xmlSerializerFaultContractInfos));
System\ServiceModel\Dispatcher\XmlSerializerObjectSerializer.cs (6)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(qualifiedName)); 37_rootType = type ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(type)); 85throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(NotImplemented.ByDesign); 90throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(NotImplemented.ByDesign); 95throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(NotImplemented.ByDesign); 122throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(reader)));
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (11)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxDocEncodedNotSupported, description.Name))); 139throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 271throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 308throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(writer))); 313throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(parameters))); 338throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxBodyCannotBeNull, messageDescription.MessageName))); 363throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 442throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(reader))); 447throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(parameters))); 480throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException( 497throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("version",
System\ServiceModel\DnsEndpointIdentity.cs (4)
17throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(dnsName)); 27throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(identity)); 32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.UnrecognizedClaimTypeForIdentity, identity.ClaimType, ClaimTypes.Dns)); 42throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer));
System\ServiceModel\DuplexChannelFactory.cs (12)
60throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(callbackObject)); 91throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(callbackObject)); 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(binding)); 116throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(callbackObject)); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(endpoint)); 154throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(address)); 169throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(address)); 174throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxCreateDuplexChannelNoCallback1)); 178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxCreateDuplexChannelNoCallback)); 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxCreateDuplexChannelNoCallbackUserObject)); 188throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SFxCreateDuplexChannel1, Endpoint.Contract.Name))); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(
System\ServiceModel\EndpointAddress.cs (36)
91throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(uri)); 108throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(uri)); 123throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(uri)); 135throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.MultipleIdentities, nameof(extensionReader))); 168throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(uri), SRP.UriMustBeAbsolute); 272throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 288throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 517throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 533throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( 538throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( 551throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 556throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(addressingVersion)); 568throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 570throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(addressingVersion)); 599throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(addressingVersion), 632throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, SRP.Format(SRP.UnexpectedDuplicateElement, XD.AddressingDictionary.Identity.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value))); 639throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, SRP.Format(SRP.AddressingExtensionInBadNS, reader.LocalName, reader.NamespaceURI))); 685throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, SRP.Format(SRP.UnexpectedElementExpectingElement, reader.LocalName, reader.NamespaceURI, XD.AddressingDictionary.Address.Value, XD.Addressing200408Dictionary.Namespace.Value))); 841throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.InvalidUriValue, address, XD.AddressingDictionary.Address.Value, AddressingVersion.WSAddressingAugust2004.Namespace))); 856throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, SRP.Format(SRP.UnexpectedElementExpectingElement, reader.LocalName, reader.NamespaceURI, XD.AddressingDictionary.Address.Value, XD.Addressing10Dictionary.Namespace.Value))); 913throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.InvalidUriValue, address, XD.AddressingDictionary.Address.Value, XD.Addressing10Dictionary.Namespace.Value))); 955throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer)); 960throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(addressingVersion)); 977throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(addressingVersion), 997throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("addressingVersion", SRP.Format(SRP.SFxNone2004)); 1051throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, SRP.Format(SRP.AddressingExtensionInBadNS, reader.LocalName, reader.NamespaceURI))); 1108throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, SRP.Format(SRP.AddressingExtensionInBadNS, reader.LocalName, reader.NamespaceURI))); 1132throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer)); 1136throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(addressingVersion)); 1140throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(localName)); 1144throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(ns)); 1167throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer)); 1171throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(addressingVersion)); 1175throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(localName)); 1179throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(ns)); 1222_epr = address ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(address));
System\ServiceModel\EndpointIdentity.cs (10)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(identityClaim)); 32_identityClaim = identityClaim ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(identityClaim)); 52throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(identity)); 143throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 151throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.Identity.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value))); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnrecognizedIdentityType, reader.Name, reader.NamespaceURI))); 190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnrecognizedIdentityType, reader.Name, reader.NamespaceURI))); 197throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.InvalidIdentityElement)); 209throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer)); 221throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.UnrecognizedIdentityPropertyType, IdentityClaim.GetType().ToString())));
System\ServiceModel\ExceptionDetail.cs (1)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(exception));
System\ServiceModel\ExtensionCollection.cs (4)
20throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(owner)); 31throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(owner)); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 123throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxCannotSetExtensionsByIndex));
System\ServiceModel\FaultCode.cs (3)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(name))); 39throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(name))); 129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(subCode)));
System\ServiceModel\FaultContractAttribute.cs (5)
22DetailType = detailType ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(detailType))); 32_action = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 43throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value)));
System\ServiceModel\FaultException.cs (6)
95throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(fault)); 108throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(fault)); 170throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(messageFault)); 175throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(faultDetailTypes)); 212throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(fault)); 221throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(messageFault));
System\ServiceModel\FaultReason.cs (6)
18throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(translation)); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(translations))); 57throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.AtLeastOneFaultReasonMustBeSpecified, "translations")); 64array[index++] = faultReasonText ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("translations", SRP.NoNullTranslations); 88throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(cultureInfo))); 110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.NoMatchingTranslationFoundForFaultText));
System\ServiceModel\FaultReasonText.cs (6)
16_text = text ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(text))); 22_text = text ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(text))); 23XmlLang = xmlLang ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(xmlLang))); 30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(cultureInfo))); 33_text = text ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(text))); 41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(cultureInfo)));
System\ServiceModel\HostnameComparisonMode.cs (1)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\InstanceContext.cs (1)
190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(error);
System\ServiceModel\KeyedByTypeCollection.cs (5)
23throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(items)); 95throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 105throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item)); 110throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", SRP.Format(SRP.DuplicateBehavior1, item.GetType().FullName)); 120throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(item));
System\ServiceModel\MessageBodyMemberAttribute.cs (1)
20throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value,
System\ServiceModel\MessageContractAttribute.cs (3)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 56throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value),
System\ServiceModel\MessageContractMemberAttribute.cs (4)
26throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 55throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), 75throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value)));
System\ServiceModel\MessageHeaderT.cs (1)
165throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException("typedHeaderInstance"));
System\ServiceModel\MessageParameterAttribute.cs (2)
20throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value),
System\ServiceModel\OperationContext.cs (4)
45throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(channel))); 63throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxInvalidChannelToOperationContext)); 74OutgoingMessageVersion = outgoingMessageVersion ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(outgoingMessageVersion))); 340throw DiagnosticUtility.ExceptionUtility.ThrowHelperCallback(e);
System\ServiceModel\OperationContextScope.cs (2)
65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxInterleavedContextScopes0)); 70throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SFxContextModifiedInsideScope0));
System\ServiceModel\OperationContractAttribute.cs (6)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), 47_action = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 62throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 78_replyAction = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(
System\ServiceModel\ReliableSession.cs (2)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reliableSessionBindingElement)); 45throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value,
System\ServiceModel\RsaEndpointIdentity.cs (7)
16throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(publicKey)); 24throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(certificate)); 28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.PublicKeyNotRSA))); 36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(identity)); 39throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.UnrecognizedClaimTypeForIdentity, identity.ClaimType, ClaimTypes.Rsa)); 61throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer)); 76throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyString));
System\ServiceModel\Security\AcceleratedTokenProvider.cs (6)
51throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 93throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.BootstrapSecurityBindingElementNotSet, GetType()))); 104throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.BootstrapSecurityBindingElementNotSet, GetType()))); 130throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.EncodingBindingElementDoesNotHandleReaderQuotas)); 222throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.MoreThanOneRSTRInRSTRC)); 229throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException());
System\ServiceModel\Security\BinaryNegotiation.cs (5)
20ValueTypeUri = valueTypeUri ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(valueTypeUri)); 21_negotiationData = negotiationData ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(negotiationData)); 28_valueTypeUriDictionaryString = valueTypeDictionaryString ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(valueTypeDictionaryString)); 30_negotiationData = negotiationData ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(negotiationData)); 37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(SRP.Format(SRP.IncorrectBinaryNegotiationValueType, ValueTypeUri)));
System\ServiceModel\Security\ChannelProtectionRequirements.cs (7)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(other))); 45throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(other))); 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(protectionRequirements))); 202throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(contract))); 266throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.OnlyBodyReturnValuesSupported)); 345throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(faults))); 350throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(requirements)));
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (14)
22ClientCredentials = clientCredentials ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(clientCredentials)); 32throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.TokenRequirementDoesNotSpecifyTargetAddress, initiatorRequirement)); 57throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("authScheme", string.Format(SRP.HttpRequiresSingleAuthScheme, authScheme)); 90throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenRequirement)); 99throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ClientCertificateNotProvidedOnClientCredentials))); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ClientCertificateNotProvidedOnClientCredentials))); 136throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.UserNamePasswordNotProvidedOnClientCredentials)); 164throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SecurityTokenManagerCannotCreateProviderForRequirement, tokenRequirement))); 174throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(version)); 184throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SecurityTokenManagerCannotCreateSerializerForVersion, version))); 193throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.TokenRequirementDoesNotSpecifyTargetAddress, initiatorRequirement)); 198throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.TokenProviderRequiresSecurityBindingElement, initiatorRequirement)); 273throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenRequirement)); 328throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SecurityTokenManagerCannotCreateAuthenticatorForRequirement, tokenRequirement)));
System\ServiceModel\Security\HttpDigestClientCredential.cs (1)
48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
System\ServiceModel\Security\IdentityVerifier.cs (7)
58throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(authorizationPolicies)); 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(authorizationContext)); 74throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(errorString, identity, serviceReference))); 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(e); 157throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reference)); 211throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(identity)); 216throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(authContext));
System\ServiceModel\Security\InitiatorSessionSymmetricTransportSecurityProtocol.cs (3)
26throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ProtocolMustBeInitiator, nameof(InitiatorSessionSymmetricTransportSecurityProtocol)))); 61throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token)); 85throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokens));
System\ServiceModel\Security\InMemoryNonceCache.cs (4)
70throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(nonce)); 75throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.NonceLengthTooShort); 86throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(nonce)); 91throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.NonceLengthTooShort);
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (10)
114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.Format(SRP.ValueMustBeInRange, 1, 100))); 144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.TimeSpanMustbeGreaterThanTimeSpanZero)); 149throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, SRP.SFxTimeoutOutOfRangeTooBig)); 266throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.TargetAddressIsNotSet, GetType()))); 271throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SecurityAlgorithmSuiteNotSet, GetType()))); 296throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(SRP.Format(SRP.SecurityNegotiationCannotProtectConfidentialEndpointHeader, target, header.Name, header.Namespace))); 474throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SRP.FailToReceiveReplyFromNegotiation)); 520throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(WrapExceptionIfRequired(e, temp, _issuerAddress)); 617throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(SRP.Format(SRP.InvalidIssuedTokenKeySize, symmetricKey.KeySize))); 623throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(SRP.Format(SRP.CannotObtainIssuedTokenKeySize)));
System\ServiceModel\Security\IssuanceTokenProviderState.cs (2)
38throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.NegotiationIsCompleted)); 48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.NegotiationIsNotCompleted));
System\ServiceModel\Security\MessagePartSpecification.cs (7)
54throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 101throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(specification)); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(header)); 205throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(name)); 210throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(ns));
System\ServiceModel\Security\MessageSecurityTokenVersion.cs (2)
128throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException());
System\ServiceModel\Security\NegotiationTokenProvider.cs (2)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.IssuerBuildContextNotSet, GetType())));
System\ServiceModel\Security\NonceCache.cs (3)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value, 55throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), value,
System\ServiceModel\Security\ReceiveSecurityHeader.cs (15)
220_readerQuotas = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 477throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.PrimarySignatureWasNotSignedByDerivedKey, _primaryTokenParameters))); 484throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.PrimarySignatureWasNotSignedByDerivedWrappedKey, _wrappingTokenParameters))); 572throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.DerivedKeyLimitExceeded, _maxDerivedKeys))); 695throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.UnknownTokenAuthenticatorUsedInTokenProcessing, usedTokenAuthenticator))); 717throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.BasicTokenNotExpected)); 729throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.SignedSupportingTokenNotExpected)); 765throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException( 788throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException( 875throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException( 892throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException( 942throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.MismatchInSecurityOperationToken)); 992throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.MismatchInSecurityOperationToken)); 999throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.MismatchInSecurityOperationToken)); 1027_tokenResolver = tokenResolver ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenResolver));
System\ServiceModel\Security\RequestSecurityToken.cs (21)
101_standardsManager = standardsManager ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(standardsManager))); 102_rstXml = rstXml ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(rstXml)); 122_standardsManager = standardsManager ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(standardsManager))); 164throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 198throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 203throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.ValueMustBeNonNegative)); 224throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, "RequestProperties"))); 232throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 243throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(String.Format(CultureInfo.InvariantCulture, "value[{0}]", index))); 268throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 271_requestType = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 285throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 302throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 315throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemAvailableInDeserializedRSTOnly, "RequestSecurityTokenXml"))); 329throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, nameof(AppliesTo)))); 341throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, nameof(AppliesToSerializer)))); 353throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, nameof(AppliesToType)))); 390throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 402throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(serializer)); 428throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer));
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (33)
115_standardsManager = standardsManager ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(standardsManager))); 138_standardsManager = standardsManager ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(standardsManager))); 139_rstrXml = rstrXml ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(rstrXml)); 165throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 199throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 216throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 243throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 260throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 265throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.ValueMustBeNonNegative)); 282throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 311throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 324throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRSTR, nameof(EntropyToken)))); 336throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRSTR, "IssuedToken"))); 344throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 357throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRSTR, "ProofToken"))); 365throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 378throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemAvailableInDeserializedRSTROnly, "RequestSecurityTokenXml"))); 390throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, nameof(AppliesTo)))); 402throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, nameof(AppliesToSerializer)))); 414throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRST, nameof(AppliesToType)))); 426throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemNotAvailableInDeserializedRSTR, nameof(IsLifetimeSet)))); 461throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 466throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.EffectiveGreaterThanExpiration); 477throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly)); 482throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(serializer)); 493throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemAvailableInDeserializedRSTOnly, "MatchesAppliesTo"))); 510throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(serializer)); 569throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer)); 636throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ItemAvailableInDeserializedRSTROnly, nameof(GetIssuedToken)))); 654throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(requestorEntropy)); 659throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(issuerEntropy)); 665throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(SRP.Format(SRP.InvalidKeySizeSpecifiedInNegotiation, keySizeInBits, s_minSaneKeySizeInBits, s_maxSaneKeySizeInBits)));
System\ServiceModel\Security\RequestSecurityTokenResponseCollection.cs (3)
26throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(rstrCollection)); 34throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(String.Format(CultureInfo.InvariantCulture, "rstrCollection[{0}]", index)); 40_standardsManager = standardsManager ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(standardsManager)));
System\ServiceModel\Security\ScopedMessagePartSpecification.cs (7)
40throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(other))); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(parts))); 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(action))); 86throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(parts))); 103throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(action))); 178throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(target)); 220throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
System\ServiceModel\Security\SecureConversationDriver.cs (4)
16throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SecureConversationDriverVersionDoesNotSupportSession)); 24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SecureConversationDriverVersionDoesNotSupportSession)); 44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SecureConversationDriverVersionDoesNotSupportSession)); 52throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SecureConversationDriverVersionDoesNotSupportSession));
System\ServiceModel\Security\SecurityAlgorithmSuite.cs (2)
102throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SigningTokenHasNoKeys, token))); 123throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SigningTokenHasNoKeysSupportingTheAlgorithmSuite, token, this)));
System\ServiceModel\Security\SecurityAppliedMessage.cs (4)
52throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.DelayedSecurityApplicationAlreadyCompleted)); 113throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateBadStateException(nameof(OnWriteStartBody))); 140throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateBadStateException(nameof(OnWriteBodyContents))); 167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateBadStateException(nameof(OnWriteBodyContentsAsync)));
System\ServiceModel\Security\SecurityChannel.cs (2)
47_securityProtocol = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(value))); 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message));
System\ServiceModel\Security\SecurityContextKeyIdentifierClause.cs (1)
32ContextId = contextId ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(contextId));
System\ServiceModel\Security\SecurityHeader.cs (5)
28Message = message ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 29_actor = actor ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(actor)); 32StandardsManager = standardsManager ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(standardsManager)); 33AlgorithmSuite = algorithmSuite ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(algorithmSuite)); 117throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.OperationCannotBeDoneAfterProcessingIsStarted));
System\ServiceModel\Security\SecurityHeaderElementInferenceEngine.cs (1)
24throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(layout)));
System\ServiceModel\Security\SecurityHeaderTokenResolver.cs (8)
46throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token)); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.ResolvingExternalTokensRequireSecurityTokenParameters); 89throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifier)); 106throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(keyIdentifierClause))); 145throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifierClause)); 186throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.UnableToDeriveKeyFromKeyInfoClause, keyIdentifierClause, resolvedToken))); 192throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.DerivedKeyLengthSpecifiedInImplicitDerivedKeyClauseTooLong, keyIdentifierClause.ToString(), derivationLength, _securityHeader.MaxDerivedKeyLength))); 272throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyIdentifierClause));
System\ServiceModel\Security\SecurityKeyEntropyMode.cs (1)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Security\SecurityMessageProperty.cs (2)
197throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 309throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName));
System\ServiceModel\Security\SecurityProtocol.cs (6)
485throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.SenderSideSupportingTokensMustSpecifySecurityTokenParameters)); 502throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 581throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnknownTokenAttachmentMode, supportingTokens[i].SecurityTokenAttachmentMode.ToString()))); 591throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TokenProviderCannotGetTokensForTarget, target))); 602throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TokenProviderCannotGetTokensForTarget, target), exception)); 606throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(SRP.Format(SRP.TokenProviderCannotGetTokensForTarget, target), sne));
System\ServiceModel\Security\SecurityProtocolFactory.cs (12)
107throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(factory)); 205_incomingAlgorithmSuite = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(value))); 220throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 237throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 265_outgoingAlgorithmSuite = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(value))); 280throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.TimeSpanMustbeGreaterThanTimeSpanZero)); 356_standardsManager = value ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(value))); 371throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.TimeSpanMustbeGreaterThanTimeSpanZero)); 427throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.ProtocolFactoryCouldNotCreateProtocol)); 492throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(nameof(DetectReplays), SRP.Format(SRP.SecurityProtocolCannotDoReplayDetection, this)); 496throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.NoncesCachedInfinitely)); 534throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(
System\ServiceModel\Security\SecuritySessionClientSettings.cs (28)
83throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.TimeSpanMustbeGreaterThanTimeSpanZero)); 100throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.TimeSpanMustbeGreaterThanTimeSpanZero)); 175throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 222throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.SecuritySessionProtocolFactoryShouldBeSetBeforeThisOperation)); 226throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SecurityStandardsManagerNotSet, GetType().ToString()))); 230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.IssuedSecurityTokenParametersNotSet, GetType()))); 234throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.KeyRolloverGreaterThanKeyRenewal)); 272throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.ChannelTypeNotSupported, typeof(TChannel)), nameof(TChannel))); 286throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 447throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ProtocolMisMatch, nameof(IInitiatorSecuritySessionProtocol), GetType().ToString()))); 606throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 723throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.MoreThanOneRSTRInRSTRC)); 730throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 820throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 884throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.MessageSecurityVerificationFailed, e)); 930throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(faultException); 1004throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SessionKeyExpiredException(SRP.SessionKeyRenewalNotSupported)); 1049throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SessionKeyExpiredException(SRP.UnableToRenewSessionKey)); 1248throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new CommunicationException(SRP.OutputNotExpected)); 1275throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new TimeoutException(SRP.Format(SRP.ClientSecurityCloseTimeout, timeout))); 1283throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new TimeoutException(SRP.Format(SRP.ClientSecurityOutputSessionCloseTimeout, timeoutHelper.OriginalTimeout))); 1333throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(sessionToken)); 1337throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(settings)); 1355throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SessionTokenIsNotGenericXmlToken, sessionToken, typeof(GenericXmlSecurityToken)))); 1366throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ChannelMustBeOpenedToGetSessionId)); 1509throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(faultException); 1513throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.SecuritySessionFaultReplyWasSent, new FaultException(protocolFault))); 1774throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ChannelNotOpen));
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (22)
120throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 151throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(value))); 155throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.TrustDriverVersionDoesNotSupportSession, nameof(value))); 159throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SecureConversationDriverVersionDoesNotSupportSession, nameof(value))); 272throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.TargetAddressIsNotSet, GetType()))); 276throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.IssuerBuildContextNotSet, GetType()))); 280throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.IssuedSecurityTokenParametersNotSet, GetType()))); 284throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.BootstrapSecurityBindingElementNotSet, GetType()))); 288throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SecurityAlgorithmSuiteNotSet, GetType()))); 300throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.IssuerBuildContextNotSet, GetType()))); 304throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.BootstrapSecurityBindingElementNotSet, GetType()))); 336throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.EncodingBindingElementDoesNotHandleReaderQuotas)); 426throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 459throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 495throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(target)); 500throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(currentToken)); 523throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(SRP.FailToReceiveReplyFromNegotiation)); 635throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.MoreThanOneRSTRInRSTRC)); 643throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 715throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(SRP.Format(SRP.InvalidIssuedTokenKeySize, symmetricKey.KeySize))); 721throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(SRP.CannotObtainIssuedTokenKeySize));
System\ServiceModel\Security\SecurityStandardsManager.cs (3)
34MessageSecurityVersion = messageSecurityVersion ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(messageSecurityVersion))); 35_tokenSerializer = tokenSerializer ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenSerializer)); 51throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(messageSecurityVersion), SRP.MessageSecurityVersionOutOfRange));
System\ServiceModel\Security\SecurityTimestamp.cs (5)
37throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new ArgumentOutOfRangeException(nameof(creationTimeUtc), SRP.CreationTimeUtcIsAfterExpiryTime)); 159throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TimeStampHasCreationAheadOfExpiry, CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), ExpiryTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture)))); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TimeStampHasExpiryTimeInPast, ExpiryTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), allowedClockSkew))); 177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.TimeStampHasCreationTimeInFuture, CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), allowedClockSkew))); 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\SecurityTokenAttachmentMode.cs (2)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, 65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value)));
System\ServiceModel\Security\SecurityTokenSpecification.cs (1)
19_tokenPolicies = tokenPolicies ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenPolicies));
System\ServiceModel\Security\SecurityUtils.cs (20)
41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException(nameof(value), (int)value, 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, 110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException(nameof(impersonationLevel), (int)impersonationLevel, 163throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("y", (int)y, 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("x", (int)x, 230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.CannotDetermineSPNBasedOnAddress, target))); 326throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.MultipleMatchingCryptosFound, typeof(T).ToString()))); 345throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.CannotFindMatchingCrypto, derivationAlgorithm))); 419throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(principalName)); 662throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 669throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(securityVersion))); 674throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(securityTokenSerializer)); 837throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 849throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.CannotFindCert, storeName, storeLocation, findType, findValue))); 867throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(findValue)); 883throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateCertificateLoadException( 927throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.IssuerBindingNotPresentInTokenRequirement, requirement)); 976throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ServerTooBusyException(SRP.Format(SRP.SecurityServerTooBusy, target), faultException)); 980throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new EndpointNotFoundException(SRP.Format(SRP.SecurityEndpointNotFound, target), faultException)); 984throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(faultException);
System\ServiceModel\Security\SecurityVersion.cs (4)
99throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 250throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(id)); 254throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(signature));
System\ServiceModel\Security\SendSecurityHeader.cs (10)
97throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token)); 102throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parameters)); 116throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token)); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parameters)); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token)); 139throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parameters)); 151throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token)); 156throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parameters)); 429throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 521throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedTokenInclusionMode, parameters.InclusionMode)));
System\ServiceModel\Security\SignatureConfirmationElement.cs (2)
20Id = id ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(id)); 21_signatureValue = signatureValue ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(signatureValue));
System\ServiceModel\Security\SupportingTokenAuthenticatorSpecification.cs (2)
23TokenAuthenticator = tokenAuthenticator ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenAuthenticator)); 26TokenParameters = tokenParameters ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenParameters));
System\ServiceModel\Security\SupportingTokenProviderSpecification.cs (2)
18TokenProvider = tokenProvider ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenProvider)); 20_tokenParameters = tokenParameters ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenParameters));
System\ServiceModel\Security\TimeBoundedCache.cs (1)
399throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(message, inner));
System\ServiceModel\Security\Tokens\BinarySecretSecurityToken.cs (3)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(keySizeInBits), SRP.Format(SRP.ValueMustBeInRange, 0, 512))); 37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(keySizeInBits), SRP.Format(SRP.KeyLengthMustBeMultipleOfEight, keySizeInBits))); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(key));
System\ServiceModel\Security\Tokens\ClaimTypeRequirement.cs (2)
22throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(claimType)); 26throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("claimType", SRP.ClaimTypeCannotBeEmpty);
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (13)
100throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.DerivedKeyNotInitialized)); 152throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenToDerive)); 157throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.DerivedKeyCannotDeriveFromSecret)); 162throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(length))); 166throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.DerivedKeyPosAndGenNotSpecified); 170throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.DerivedKeyPosAndGenBothSpecified); 173_id = id ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(id)); 175_nonce = nonce ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(nonce)); 180TokenToDeriveIdentifier = tokenToDeriveIdentifier ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenToDeriveIdentifier)); 197throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.DerivedKeyLengthTooLong, Length, maxKeyLength)); 205throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.DerivedKeyCannotDeriveFromSecret); 218throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.DerivedKeyTokenOffsetTooHigh, offset, maxOffset))); 226throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.DerivedKeyTokenGenerationAndLengthTooHigh, generation, length, maxOffset)));
System\ServiceModel\Security\Tokens\DerivedKeySecurityTokenStub.cs (2)
36public override DateTime ValidFrom => throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException()); 38public override DateTime ValidTo => throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException());
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (1)
118throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), SRP.ValueMustBeNonNegative));
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (6)
134throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(key)); 141throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("validFrom", SRP.EffectiveGreaterThanExpiration); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("keyEffectiveTime", SRP.EffectiveGreaterThanExpiration); 154throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.KeyLifetimeNotWithinTokenLifetime); 159ContextId = contextId ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(contextId)); 185throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().FullName));
System\ServiceModel\Security\Tokens\SecurityTokenContainer.cs (1)
14Token = token ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token));
System\ServiceModel\Security\Tokens\SecurityTokenInclusionMode.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (8)
23throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(other)); 61throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.SecurityTokenParametersCloneInvalidResult, GetType().ToString()))); 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token)); 85throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException( 114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.UnableToCreateTokenReference)); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token)); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException( 161throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(token));
System\ServiceModel\Security\Tokens\SecurityTokenProviderContainer.cs (1)
16TokenProvider = tokenProvider ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenProvider));
System\ServiceModel\Security\Tokens\SecurityTokenReferenceStyle.cs (1)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Security\Tokens\SupportingTokenParameters.cs (1)
20throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(other));
System\ServiceModel\Security\Tokens\X509KeyIdentifierClauseType.cs (1)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Security\TransportSecurityProtocol.cs (3)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 71throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(message)); 92throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.MessageSecurityVerificationFailed, e));
System\ServiceModel\Security\TrustDriver.cs (4)
35throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.TrustDriverVersionDoesNotSupportIssuedTokens)); 44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.TrustDriverVersionDoesNotSupportIssuedTokens)); 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.TrustDriverVersionDoesNotSupportSession)); 79throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.TrustDriverVersionDoesNotSupportSession));
System\ServiceModel\Security\UserNamePasswordClientCredential.cs (1)
61throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
System\ServiceModel\Security\WindowsClientCredential.cs (2)
48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.UnsupportedTokenImpersonationLevel, "AllowedImpersonationLevel", value.ToString()))); 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ObjectIsReadOnly));
System\ServiceModel\Security\WrapperSecurityCommunicationObject.cs (1)
21_innerCommunicationObject = innerCommunicationObject ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(innerCommunicationObject));
System\ServiceModel\Security\WSKeyInfoSerializer.cs (4)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(securityVersion), SRP.MessageSecurityVersionOutOfRange)); 45throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenEntryList)); 214_parent = parent ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parent));
System\ServiceModel\Security\WSSecureConversation.cs (17)
21WSSecurityTokenSerializer = tokenSerializer ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenSerializer)); 36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenEntryList)); 74_parent = parent ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parent)); 99throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(tokenReferenceStyle))); 119throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(tokenResolver)); 142throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.DerivedKeyTokenRequiresTokenReference)); 155throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.DerivedKeyInvalidGenerationSpecified, generation))); 167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.DerivedKeyInvalidOffsetSpecified, offset))); 196throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.DerivedKeyTokenLabelTooLong, label.Length, _maxKeyDerivationLabelLength))); 206throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SRP.Format(SRP.DerivedKeyTokenNonceTooLong, nonce.Length, _maxKeyDerivationNonceLength))); 256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.UnsupportedKeyDerivationAlgorithm, derivedKeyToken.KeyDerivationAlgorithm))); 349throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("tokenReferenceStyle")); 452throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.NoSecurityContextIdentifier)); 462throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SecurityContextTokenValidationException(SRP.Format(SRP.SecurityContextNotRegistered, contextId, generation))); 494throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.NoCookieInSct)); 548throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 565throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader));
System\ServiceModel\Security\WSSecurityJan2004.cs (13)
68throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(valueTypeUris)); 122throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.UnknownEncodingInBinarySecurityToken)); 127throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(tokenReferenceStyle))); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.UnknownEncodingInBinarySecurityToken)); 167throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(rawData)); 214throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 219throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 268throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(tokenReferenceStyle))); 321throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedPasswordType, type))); 384throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CantInferReferenceForToken, ValueTypeAbsoluteUri))); 392throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.InvalidX509RawData)); 434throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 444throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer));
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (8)
259throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.TransportSecuredMessageHasMoreThanOneToHeader)); 371throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.TimestampToSignHasNoId)); 391throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.TransportSecurityRequireToHeader)); 503throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 550throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 559throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 566throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( 593throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.ElementToSignMustHaveId));
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (19)
76throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(maximumKeyDerivationOffset), SRP.ValueMustBeNonNegative)); 80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(maximumKeyDerivationLabelLength), SRP.ValueMustBeNonNegative)); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(maximumKeyDerivationNonceLength), SRP.ValueMustBeGreaterThanZero)); 87SecurityVersion = securityVersion ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(securityVersion))); 105throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 118throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(securityVersion), SRP.MessageSecurityVersionOutOfRange)); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); 219throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.ErrorDeserializingTokenXml, e)); 223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CannotReadToken, reader.LocalName, reader.NamespaceURI, localReader.GetAttribute(XD.SecurityJan2004Dictionary.ValueType, null)))); 258throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ErrorSerializingSecurityToken), e)); 267throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.StandardsManagerCannotWriteObject, token.GetType()))); 379throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(element)); 400throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(element)); 418throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.ErrorDeserializingKeyIdentifierClauseFromTokenXml, e)); 423throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CannotReadToken, element.LocalName, element.NamespaceURI, element.GetAttribute(SecurityJan2004Strings.ValueType, null)))); 470throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.RequiredAttributeMissing, idAttributeLocalName, issuedTokenXml.LocalName))); 516_dictionaryStrings = dictionaryStrings ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(dictionaryStrings))); 523throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(value))); 556throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(value)));
System\ServiceModel\Security\WSTrust.cs (42)
107throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(tokenReferenceStyle))); 125throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SRP.Format(SRP.UnexpectedBinarySecretType, _parent.SerializerDictionary.SymmetricKeyBinarySecret.Value, secretType))); 301throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(xmlReader)); 363throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SecurityNegotiationException(SRP.Format(SRP.UnknownComputedKeyAlgorithm, computedKeyAlgorithm))); 407throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.NoRequestSecurityTokenResponseElements)); 471throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(rstr)); 481throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(rst)); 511throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(rst)); 521throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(rstr)); 569throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.RstrHasMultipleIssuedTokens)); 577throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.RstrHasMultipleProofTokens)); 602throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(defaultKeySize), SRP.ValueMustBeNonNegative)); 607throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(rstr)); 615throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.BadIssuedTokenType, rstr.TokenType, expectedTokenType))); 633throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.NoLicenseXml)); 640throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.BearerKeyTypeCannotHaveProofKey)); 652throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresRequestorEntropy, keyEntropyMode))); 657throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeCannotHaveProofTokenOrIssuerEntropy, keyEntropyMode))); 665throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeCannotHaveRequestorEntropy, keyEntropyMode))); 669throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeCannotHaveComputedKey, keyEntropyMode))); 673throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresProofToken, keyEntropyMode))); 687throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresComputedKey, keyEntropyMode))); 691throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresIssuerEntropy, keyEntropyMode))); 695throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresRequestorEntropy, keyEntropyMode))); 699throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.RstrKeySizeNotProvided)); 709throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.UnsupportedIssuerEntropyType)); 727throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 737throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 757throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(elem)); 774throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnsupportedBinaryEncoding, encodingUri))); 839throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.TrustDriverIsUnableToCreatedNecessaryAttachedOrUnattachedReferences, issuedTokenXml.ToString()))); 929throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(negotiation)); 942throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(rst)); 946throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(xmlWriter)); 1038throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(rstr)); 1043throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(xmlWriter)); 1168throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(rstrCollection)); 1205throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(element)); 1226throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(element)); 1251throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new SecurityNegotiationException(SRP.Format(SRP.InvalidKeyLengthRequested, keySize))); 1260throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.EntropyModeRequiresRequestorEntropy, mode))); 1264throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SRP.Format(SRP.EntropyModeCannotHaveRequestorEntropy, mode)));
System\ServiceModel\Security\WSTrustDec2005.cs (1)
54throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyWrapAlgorithm));
System\ServiceModel\Security\WSTrustFeb2005.cs (1)
136throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.TrustDriverIsUnableToCreatedNecessaryAttachedOrUnattachedReferences, issuedTokenXml.ToString())));
System\ServiceModel\Security\X509CertificateInitiatorClientCredential.cs (3)
58throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(subjectName)); 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(findValue)); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ObjectIsReadOnly)));
System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (6)
79throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(subjectName)); 88throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(findValue)); 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(subjectName)); 107throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(findValue)); 111throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(targetService)); 132throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SRP.Format(SRP.ObjectIsReadOnly)));
System\ServiceModel\Security\X509CertificateValidationMode.cs (1)
56throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
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 (20)
52throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parent)); 85throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(parent)); 120throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CouldNotFindNamespaceForPrefix, prefix))); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ChildNodeTypeMissing, parentName, expectedNodeType))); 176throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ChildNodeTypeMissing, parent.Name, expectedNodeType))); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.EmptyXmlElementError, r.Name))); 186throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.EmptyXmlElementError, e.Name))); 191throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedEndOfFile))); 196throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.CouldNotFindNamespaceForPrefix, prefix))); 201throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.RequiredAttributeMissing, attrName, elementName))); 206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.ExpectedElementMissing, elementName, elementNamespace))); 211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedXmlChildNode, r.Name, r.NodeType, parentName))); 216throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedXmlChildNode, n.Name, n.NodeType, parent.Name))); 259throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( 270throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(element)); 285throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.InvalidQName)); 304throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(idPrefix))); 309throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(idPrefix), SRP.Format(SRP.ValueMustBeGreaterThanZero))); 314throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(idPrefix), SRP.Format(SRP.InValidateIdPrefix, idPrefix[0]))); 322throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(idPrefix), SRP.Format(SRP.InValidateId, idPrefix[i])));
System\ServiceModel\ServiceChannelManager.cs (6)
95throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.SfxCloseTimedOutWaitingForDispatchToComplete)); 97throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString())); 129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.SfxCloseTimedOutWaitingForDispatchToComplete)); 131throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString())); 197throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(GetType().ToString())); 362_syncRoot = syncRoot ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(syncRoot)));
System\ServiceModel\ServiceContractAttribute.cs (6)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value)); 50throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value), 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 98throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value)));
System\ServiceModel\ServiceModelDictionary.cs (2)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(key))); 112throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(key)));
System\ServiceModel\ServiceSecurityContext.cs (3)
26AuthorizationPolicies = authorizationPolicies ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(authorizationPolicies)); 36_authorizationContext = authorizationContext ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(authorizationContext)); 37AuthorizationPolicies = authorizationPolicies ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(authorizationPolicies));
System\ServiceModel\SpnEndpointIdentity.cs (4)
18throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(spnName)); 28throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(identity)); 33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.UnrecognizedClaimTypeForIdentity, identity.ClaimType, ClaimTypes.Spn)); 49throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
System\ServiceModel\SynchronizedCollection.cs (10)
25_sync = syncRoot ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(syncRoot))); 32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(list))); 36_sync = syncRoot ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(syncRoot))); 43throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(list))); 52_sync = syncRoot ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(syncRoot))); 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(index), index, 146throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(index), index, 189throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(index), index, 309throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.SynchronizedCollectionWrongTypeNull)); 314throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.Format(SRP.SynchronizedCollectionWrongType1, value.GetType().FullName)));
System\ServiceModel\SynchronizedKeyedCollection.cs (10)
38_comparer = comparer ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(comparer))); 47throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(dictionaryCreationThreshold), dictionaryCreationThreshold, 59_comparer = comparer ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(comparer))); 68throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(key))); 87throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new KeyNotFoundException()); 112throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.CannotAddTwoItemsWithTheSameKeyToSynchronizedKeyedCollection0)); 124throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SRP.ItemDoesNotExistInSynchronizedKeyedCollection0)); 158throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(key))); 233throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(key))); 281throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(key));
System\ServiceModel\SynchronizedReadOnlyCollection.cs (10)
24_sync = syncRoot ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(syncRoot))); 31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(list))); 35_sync = syncRoot ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(syncRoot))); 42throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(list))); 51_sync = syncRoot ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(syncRoot))); 58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(list))); 70_sync = syncRoot ?? throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(nameof(syncRoot))); 119throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.SFxCollectionReadOnly)); 180throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.SFxCopyToRequiresICollection)); 274throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(message));
System\ServiceModel\TransferMode.cs (1)
43throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\UpnEndpointIdentity.cs (4)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(upnName)); 31throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(identity)); 36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SRP.Format(SRP.UnrecognizedClaimTypeForIdentity, identity.ClaimType, ClaimTypes.Upn)); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer));
System\ServiceModel\UriSchemeKeyedCollection.cs (8)
21throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(addresses)); 40throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", SRP.Format(SRP.BaseAddressDuplicateScheme, item.Scheme)); 53throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", SRP.Format(SRP.BaseAddressDuplicateScheme, item.Scheme)); 63throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(argumentName); 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);
System\ServiceModel\X509CertificateEndpointIdentity.cs (7)
18throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(certificate)); 30throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(primaryCertificate)); 35throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(supportingCertificates)); 52throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(reader)); 58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.X509v3Certificate.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value))); 80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.X509v3Certificate.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value))); 90throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(writer));
System\ServiceModel\XmlBuffer.cs (6)
54throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(maxBufferSize), maxBufferSize, 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateInvalidStateException()); 104throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateInvalidStateException()); 119throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateInvalidStateException()); 138throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateInvalidStateException()); 151throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateInvalidStateException());
System\ServiceModel\XmlSerializerFormatAttribute.cs (2)
52throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value))); 60throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(value)));
System\ServiceModel\XmlUtil.cs (3)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.XmlLangAttributeMissing)); 130throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.InvalidXmlQualifiedName, qname))); 139throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SRP.Format(SRP.UnboundPrefixInQName, qname)));