Internals\System\Xml\XmlExceptionHelper.cs (4)
12static void ThrowXmlException(XmlDictionaryReader reader, string res, string arg1)
17static void ThrowXmlException(XmlDictionaryReader reader, string res, string arg1, string arg2)
22static void ThrowXmlException(XmlDictionaryReader reader, string res, string arg1, string arg2, string arg3)
34static public void ThrowMaxStringContentLengthExceeded(XmlDictionaryReader reader, int maxStringContentLength)
Internals\System\Xml\XmlMtomReader.cs (13)
23public static XmlDictionaryReader Create(Stream stream, Encoding encoding, XmlDictionaryReaderQuotas quotas)
31public static XmlDictionaryReader Create(Stream stream, Encoding[] encodings, XmlDictionaryReaderQuotas quotas)
36public static XmlDictionaryReader Create(Stream stream, Encoding[] encodings, string contentType, XmlDictionaryReaderQuotas quotas)
41public static XmlDictionaryReader Create(Stream stream, Encoding[] encodings, string contentType,
49public static XmlDictionaryReader Create(byte[] buffer, int offset, int count, Encoding encoding, XmlDictionaryReaderQuotas quotas)
57public static XmlDictionaryReader Create(byte[] buffer, int offset, int count, Encoding[] encodings, XmlDictionaryReaderQuotas quotas)
62public static XmlDictionaryReader Create(byte[] buffer, int offset, int count, Encoding[] encodings, string contentType, XmlDictionaryReaderQuotas quotas)
67public static XmlDictionaryReader Create(byte[] buffer, int offset, int count, Encoding[] encodings, string contentType,
76private XmlDictionaryReader _xmlReader;
77private XmlDictionaryReader _infosetReader;
178_xmlReader = XmlDictionaryReader.CreateTextReader(infosetBytes, 0, infosetByteCount, encoding, quotas, null);
1131private XmlDictionaryReader _parentReader;
1141public XopIncludeReader(MimePart part, XmlDictionaryReader reader)
System\IdentityModel\Tokens\WSSecurityJan2004.cs (9)
168protected virtual string ReadTokenType(XmlDictionaryReader reader)
173public override SecurityKeyIdentifierClause ReadKeyIdentifierClauseCore(XmlDictionaryReader reader)
268public override bool CanReadClause(XmlDictionaryReader reader, string tokenType)
285public override SecurityKeyIdentifierClause ReadClause(XmlDictionaryReader reader, byte[] derivationNonce, int derivationLength, string tokenType)
400public override bool CanReadClause(XmlDictionaryReader reader, string tokenType)
413public override SecurityKeyIdentifierClause ReadClause(XmlDictionaryReader reader, byte[] derivationNonce, int derivationLength, string tokenType)
464public override bool CanReadClause(XmlDictionaryReader reader, string tokenType)
473public override SecurityKeyIdentifierClause ReadClause(XmlDictionaryReader reader, byte[] derivationNonce, int derivationLength, string tokenType)
526public override string ExtractId(XmlDictionaryReader reader)
System\ServiceModel\Channels\Addressing.cs (15)
93public static string ReadHeaderValue(XmlDictionaryReader reader, AddressingVersion addressingVersion)
106public static ActionHeader ReadHeader(XmlDictionaryReader reader, AddressingVersion version,
210public static FromHeader ReadHeader(XmlDictionaryReader reader, AddressingVersion version,
225public static EndpointAddress ReadHeaderValue(XmlDictionaryReader reader, AddressingVersion addressingVersion)
304public static FaultToHeader ReadHeader(XmlDictionaryReader reader, AddressingVersion version,
319public static EndpointAddress ReadHeaderValue(XmlDictionaryReader reader, AddressingVersion version)
459public static Uri ReadHeaderValue(XmlDictionaryReader reader, AddressingVersion version)
464public static Uri ReadHeaderValue(XmlDictionaryReader reader, AddressingVersion version, UriCache uriCache)
483public static ToHeader ReadHeader(XmlDictionaryReader reader, AddressingVersion version, UriCache uriCache,
633public static ReplyToHeader ReadHeader(XmlDictionaryReader reader, AddressingVersion version,
660public static EndpointAddress ReadHeaderValue(XmlDictionaryReader reader, AddressingVersion version)
739public static UniqueId ReadHeaderValue(XmlDictionaryReader reader, AddressingVersion version)
745public static MessageIDHeader ReadHeader(XmlDictionaryReader reader, AddressingVersion version,
866public static void ReadHeaderValue(XmlDictionaryReader reader, AddressingVersion version, out Uri relationshipType, out UniqueId messageId)
887public static RelatesToHeader ReadHeader(XmlDictionaryReader reader, AddressingVersion version,
System\ServiceModel\Channels\Message.cs (47)
138return CreateMessage(version, action, XmlDictionaryReader.CreateDictionaryReader(body));
141static public Message CreateMessage(MessageVersion version, string action, XmlDictionaryReader body)
208return CreateMessage(XmlDictionaryReader.CreateDictionaryReader(envelopeReader), maxSizeOfHeaders, version);
211static public Message CreateMessage(XmlDictionaryReader envelopeReader, int maxSizeOfHeaders, MessageVersion version)
294XmlDictionaryReader reader = GetReaderAtBodyContents(); // This call will change the message state to Read.
298protected virtual T OnGetBody<T>(XmlDictionaryReader reader)
313private T GetBodyCore<T>(XmlDictionaryReader reader, XmlObjectSerializer serializer)
324internal virtual XmlDictionaryReader GetReaderAtHeader()
339XmlDictionaryReader reader = buffer.GetReader(0);
345public XmlDictionaryReader GetReaderAtBodyContents()
383static internal bool IsFaultStartElement(XmlDictionaryReader reader, EnvelopeVersion version)
412protected virtual XmlDictionaryReader OnGetReaderAtBodyContents()
429XmlDictionaryReader reader = bodyBuffer.GetReader(0);
616internal void ReadFromBodyContentsToEnd(XmlDictionaryReader reader)
621private static void ReadFromBodyContentsToEnd(XmlDictionaryReader reader, EnvelopeVersion envelopeVersion)
631internal static bool ReadStartBody(XmlDictionaryReader reader, EnvelopeVersion envelopeVersion, out bool isFault, out bool isEmpty)
979private XmlDictionaryReader _reader;
982public XmlReaderBodyWriter(XmlDictionaryReader reader, EnvelopeVersion version)
1251protected static bool HasHeaderElement(XmlDictionaryReader reader, EnvelopeVersion envelopeVersion)
1260using (XmlDictionaryReader bodyReader = OnGetReaderAtBodyContents())
1277protected bool ReadStartBody(XmlDictionaryReader reader)
1282protected static EnvelopeVersion ReadStartEnvelope(XmlDictionaryReader reader)
1308protected static void VerifyStartBody(XmlDictionaryReader reader, EnvelopeVersion version)
1327private XmlDictionaryReader _reader;
1330public StreamedMessage(XmlDictionaryReader reader, int maxSizeOfHeaders, MessageVersion desiredVersion)
1484protected override XmlDictionaryReader OnGetReaderAtBodyContents()
1486XmlDictionaryReader reader = _reader;
1534XmlDictionaryReader GetMessageReader();
1545private XmlDictionaryReader _reader;
1566XmlDictionaryReader reader = messageData.GetMessageReader();
1672protected override XmlDictionaryReader OnGetReaderAtBodyContents()
1674XmlDictionaryReader reader = _reader;
1679internal override XmlDictionaryReader GetReaderAtHeader()
1686XmlDictionaryReader reader = MessageData.GetMessageReader();
1701public XmlDictionaryReader GetBufferedReaderAtBody()
1703XmlDictionaryReader reader = MessageData.GetMessageReader();
1725public XmlDictionaryReader GetMessageReader()
1732using (XmlDictionaryReader reader = GetBufferedReaderAtBody())
1836using (XmlDictionaryReader reader = GetMessageReader())
1847using (XmlDictionaryReader reader = GetMessageReader())
1866using (XmlDictionaryReader reader = GetBufferedReaderAtBody())
1909using (XmlDictionaryReader reader = GetBufferedReaderAtBody())
1956public static XmlAttributeHolder[] ReadAttributes(XmlDictionaryReader reader)
1962public static XmlAttributeHolder[] ReadAttributes(XmlDictionaryReader reader, ref int maxSizeOfHeaders)
2096public MessageHeaderInfo TakeHeaderInfo(XmlDictionaryReader reader, string actor, bool mustUnderstand, bool relay, bool isRefParam)
2160public HeaderInfo(XmlDictionaryReader reader, string actor, bool mustUnderstand, bool relay, bool isReferenceParameter)
2200public bool Matches(XmlDictionaryReader reader, string actor, bool mustUnderstand, bool relay, bool isRefParam)
System\ServiceModel\Channels\MessageHeaders.cs (22)
46internal MessageHeaders(MessageVersion version, XmlDictionaryReader reader, XmlAttributeHolder[] envelopeAttributes, XmlAttributeHolder[] headerAttributes, ref int maxSizeOfHeaders)
101internal MessageHeaders(MessageVersion version, XmlDictionaryReader reader, IBufferedMessageData bufferedMessageData, RecycledMessageState recycledMessageState, bool[] understoodHeaders, bool understoodHeadersModified)
145using (XmlDictionaryReader reader = GetReaderAtHeader(index))
196using (XmlDictionaryReader reader = GetReaderAtHeader(index))
230using (XmlDictionaryReader reader = GetReaderAtHeader(index))
279using (XmlDictionaryReader reader = GetReaderAtHeader(index))
327using (XmlDictionaryReader reader = GetReaderAtHeader(index))
361using (XmlDictionaryReader reader = GetReaderAtHeader(index))
482using (XmlDictionaryReader reader = GetBufferedMessageHeaderReaderAtHeaderContents(_bufferedMessageData))
509private BufferedHeader CaptureBufferedHeader(XmlDictionaryReader reader, MessageHeaderInfo headerInfo)
883private static XmlDictionaryReader GetBufferedMessageHeaderReaderAtHeaderContents(IBufferedMessageData bufferedMessageData)
885XmlDictionaryReader reader = bufferedMessageData.GetMessageReader();
907private XmlDictionaryReader GetBufferedMessageHeaderReader(IBufferedMessageData bufferedMessageData, int bufferedMessageHeaderIndex)
916XmlDictionaryReader reader = GetBufferedMessageHeaderReaderAtHeaderContents(bufferedMessageData);
936private void Skip(XmlDictionaryReader reader)
1014using (XmlDictionaryReader reader = GetReaderAtHeader(index))
1102public XmlDictionaryReader GetReaderAtHeader(int headerIndex)
1150using (XmlDictionaryReader reader = GetReaderAtHeader(index))
1163XmlDictionaryReader reader = _bufferedMessageData.GetMessageReader();
1193using (XmlDictionaryReader reader = GetReaderAtHeader(index))
1310internal void Init(MessageVersion version, XmlDictionaryReader reader, IBufferedMessageData bufferedMessageData, RecycledMessageState recycledMessageState, bool[] understoodHeaders, bool understoodHeadersModified)
1462private void ReadBufferedHeader(XmlDictionaryReader reader, RecycledMessageState recycledMessageState, XmlDictionaryString[] localNames, bool understood)
System\ServiceModel\Channels\MtomMessageEncoder.cs (12)
34private volatile SynchronizedPool<XmlDictionaryReader> _streamedReaderPool;
179_streamedReaderPool = new SynchronizedPool<XmlDictionaryReader>(MaxReadPoolSize);
183XmlDictionaryReader xmlReader = _streamedReaderPool.Take();
209xmlReader = XmlDictionaryReader.CreateTextReader(stream, TextMessageEncoderFactory.GetEncodingFromContentType(contentType, ContentEncodingMap), ReaderQuotas, _onStreamedReaderClose);
231internal void ReturnStreamedReader(XmlDictionaryReader xmlReader)
501XmlDictionaryReader xmlDictionaryReader = XmlMtomReader.Create(messageData.Array, messageData.Offset, messageData.Count, MtomMessageEncoderFactory.GetSupportedEncodings(), contentType, XmlDictionaryReaderQuotas.Max, int.MaxValue, null);
587private ObjectPool<XmlDictionaryReader> _readerPool;
595_readerPool = NullCreatingPooledObjectPolicy<XmlDictionaryReader>.CreatePool(maxReaderPoolSize);
608protected override XmlDictionaryReader TakeXmlReader()
614XmlDictionaryReader xmlReader = _readerPool.Get();
638xmlReader = XmlDictionaryReader.CreateTextReader(buffer.Array, buffer.Offset, buffer.Count, TextMessageEncoderFactory.GetEncodingFromContentType(_contentType, _messageEncoder._factory.ContentEncodingMap), Quotas, _onClose);
659protected override void ReturnXmlReader(XmlDictionaryReader xmlReader)
System\ServiceModel\Channels\WsrmFault.cs (19)
248protected WsrmHeaderFault(FaultCode code, string subcode, FaultReason reason, XmlDictionaryReader detailReader,
294string subcode, FaultReason reason, XmlDictionaryReader detailReader)
390private static UniqueId ParseDetail(XmlDictionaryReader reader, ReliableMessagingVersion reliableMessagingVersion)
432XmlDictionaryReader detailReader = WsrmSequenceFaultHeader.GetReaderAtDetailContents(detailName,
472XmlDictionaryReader detailReader = fault.GetReaderAtDetailContents();
492XmlDictionaryReader detailReader, ReliableMessagingVersion reliableMessagingVersion)
531XmlDictionaryReader detailReader, ReliableMessagingVersion reliableMessagingVersion)
546public MessageNumberRolloverFault(FaultCode code, FaultReason reason, XmlDictionaryReader detailReader,
601public SequenceClosedFault(FaultCode code, FaultReason reason, XmlDictionaryReader detailReader,
615public SequenceTerminatedFault(FaultCode code, FaultReason reason, XmlDictionaryReader detailReader,
652public UnknownSequenceFault(FaultCode code, FaultReason reason, XmlDictionaryReader detailReader,
702public static XmlDictionaryReader GetReaderAtDetailContents(string detailName, string detailNamespace,
703XmlDictionaryReader headerReader, ReliableMessagingVersion reliableMessagingVersion)
715public static XmlDictionaryReader GetReaderAtDetailContents11(string detailName, string detailNamespace,
716XmlDictionaryReader headerReader)
734public static XmlDictionaryReader GetReaderAtDetailContentsFeb2005(string detailName, string detailNamespace,
735XmlDictionaryReader headerReader)
788XmlDictionaryReader detailReader = buffer.GetReader(index);
797public static string GetSubcode(XmlDictionaryReader headerReader,
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (9)
328XmlDictionaryReader headerReader = headers.GetReaderAtHeader(i);
367XmlDictionaryReader headerReader = headers.GetReaderAtHeader(i);
397private object DeserializeHeaderContents(XmlDictionaryReader reader, MessageDescription messageDescription, MessageHeaderDescription headerDescription)
410protected override object DeserializeBody(XmlDictionaryReader reader, MessageVersion version, string action, MessageDescription messageDescription, object[] parameters, bool isRequest)
474private void DeserializeParameters(XmlDictionaryReader reader, PartInfo[] parts, object[] parameters, bool isRequest)
501private object DeserializeParameter(XmlDictionaryReader reader, PartInfo part, bool isRequest)
516private object DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part, bool isRequest)
650public object ReadObject(XmlDictionaryReader reader)
655public object ReadObject(XmlDictionaryReader reader, XmlObjectSerializer serializer)
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (6)
194XmlDictionaryReader headerReader = headers.GetReaderAtHeader(headerIndex);
238XmlDictionaryReader bufferReader = XmlDictionaryReader.CreateTextReader(memoryBuffer.Array, 0, (int)memoryStream.Length, XmlDictionaryReaderQuotas.Max);
276private static void AddUnknownHeader(MessageHeaderDescription unknownHeaderDescription, ArrayList unknownHeaders, XmlDocument xmlDoc, XmlDictionaryWriter bufferWriter, MessageHeaderInfo header, XmlDictionaryReader headerReader)
394protected override object DeserializeBody(XmlDictionaryReader reader, MessageVersion version, string action, MessageDescription messageDescription, object[] parameters, bool isRequest)
436private object DeserializeBody(XmlDictionaryReader reader, MessageVersion version, XmlSerializer serializer, MessagePartDescription returnPart, MessagePartDescriptionCollection bodyParts, object[] parameters, bool isRequest)
System\ServiceModel\EndpointAddress.cs (29)
119internal EndpointAddress(Uri uri, EndpointIdentity identity, AddressHeaderCollection headers, XmlDictionaryReader metadataReader, XmlDictionaryReader extensionReader, XmlDictionaryReader pspReader)
456internal XmlDictionaryReader GetReaderAtPsp()
462public XmlDictionaryReader GetReaderAtMetadata()
468public XmlDictionaryReader GetReaderAtExtensions()
473private static XmlDictionaryReader GetReaderAtSection(XmlBuffer buffer, int section)
480XmlDictionaryReader reader = buffer.GetReader(section);
487private void PossiblyPopulateBuffer(XmlDictionaryReader reader, ref XmlBuffer buffer, out int section)
507public static EndpointAddress ReadFrom(XmlDictionaryReader reader)
513internal static EndpointAddress ReadFrom(XmlDictionaryReader reader, out AddressingVersion version)
547public static EndpointAddress ReadFrom(AddressingVersion addressingVersion, XmlDictionaryReader reader)
565public static EndpointAddress ReadFrom(AddressingVersion addressingVersion, XmlDictionaryReader reader, XmlDictionaryString localName, XmlDictionaryString ns)
578private static EndpointAddress ReadFromDriver(AddressingVersion addressingVersion, XmlDictionaryReader reader)
613internal static XmlBuffer ReadExtensions(XmlDictionaryReader reader, AddressingVersion version, XmlBuffer buffer, out EndpointIdentity identity, out int section)
673private static bool ReadContentsFrom200408(XmlDictionaryReader reader, out Uri uri, out AddressHeaderCollection headers, out EndpointIdentity identity, out XmlBuffer buffer, out int metadataSection, out int extensionSection, out int pspSection)
847private static bool ReadContentsFrom10(XmlDictionaryReader reader, out Uri uri, out AddressHeaderCollection headers, out EndpointIdentity identity, out XmlBuffer buffer, out int metadataSection, out int extensionSection)
919private static XmlException CreateXmlException(XmlDictionaryReader reader, string message)
931private static bool Done(XmlDictionaryReader reader)
938static internal void Copy(XmlDictionaryWriter writer, XmlDictionaryReader reader)
1022XmlDictionaryReader reader = null;
1088XmlDictionaryReader reader = GetReaderAtSection(Buffer, _metadataSection);
1103XmlDictionaryReader reader = GetReaderAtSection(Buffer, _extensionSection);
1238public XmlDictionaryReader GetReaderAtMetadata()
1250XmlDictionaryReader reader = _metadataBuffer.GetReader(0);
1257public void SetMetadataReader(XmlDictionaryReader reader)
1272public XmlDictionaryReader GetReaderAtExtensions()
1284XmlDictionaryReader reader = _extensionBuffer.GetReader(0);
1291public void SetExtensionReader(XmlDictionaryReader reader)
System\ServiceModel\Security\WSSecureConversation.cs (9)
41public virtual bool IsAtDerivedKeyToken(XmlDictionaryReader reader)
46public virtual void ReadDerivedKeyTokenParameters(XmlDictionaryReader reader, SecurityTokenResolver tokenResolver, out string id, out string derivationAlgorithm, out string label, out int length, out byte[] nonce, out int offset, out int generation, out SecurityKeyIdentifierClause tokenToDeriveIdentifier, out SecurityToken tokenToDerive)
115public virtual void ReadDerivedKeyTokenParameters(XmlDictionaryReader reader, SecurityTokenResolver tokenResolver, out string id, out string derivationAlgorithm, out string label, out int length, out byte[] nonce, out int offset, out int generation, out SecurityKeyIdentifierClause tokenToDeriveIdentifier, out SecurityToken tokenToDerive)
226public override SecurityToken ReadTokenCore(XmlDictionaryReader reader, SecurityTokenResolver tokenResolver)
353protected abstract bool CanReadGeneration(XmlDictionaryReader reader);
355protected abstract UniqueId ReadGeneration(XmlDictionaryReader reader);
405public override SecurityToken ReadTokenCore(XmlDictionaryReader reader, SecurityTokenResolver tokenResolver)
544public override UniqueId GetSecurityContextTokenId(XmlDictionaryReader reader)
561public override bool IsAtSecurityContextToken(XmlDictionaryReader reader)
System\ServiceModel\Security\XmlHelper.cs (8)
219internal static string ReadEmptyElementAndRequiredAttribute(XmlDictionaryReader reader,
240internal static string GetRequiredNonEmptyAttribute(XmlDictionaryReader reader, XmlDictionaryString name, XmlDictionaryString ns)
250internal static byte[] GetRequiredBase64Attribute(XmlDictionaryReader reader, XmlDictionaryString name, XmlDictionaryString ns)
327internal static UniqueId GetAttributeAsUniqueId(XmlDictionaryReader reader, XmlDictionaryString localName, XmlDictionaryString ns)
332private static UniqueId GetAttributeAsUniqueId(XmlDictionaryReader reader, string name, string ns)
372static public Int64 ReadElementContentAsInt64(XmlDictionaryReader reader)
385static public UniqueId ReadElementStringAsUniqueId(XmlDictionaryReader reader, XmlDictionaryString localName, XmlDictionaryString ns)
399static public UniqueId ReadElementStringAsUniqueId(XmlDictionaryReader reader)