/// <summary> /// Reads an atom:link element into the Links collection of feed metadata (i.e., links that are not special to the OData protocol). /// </summary> /// <param name="atomFeedMetadata">The feed metadata to augment.</param> /// <remarks> /// Pre-Condition: XmlNodeType.Element (atom:link) - the atom:link element to read. /// Post-Condition: Any - the node after the atom:link element which was read. /// </remarks> private void ReadLinkElementIntoLinksCollection(AtomFeedMetadata atomFeedMetadata) { this.AssertXmlCondition(XmlNodeType.Element); Debug.Assert( this.XmlReader.LocalName == AtomConstants.AtomLinkElementName && this.XmlReader.NamespaceURI == AtomConstants.AtomNamespace, "Only atom:link elements can be read by this method."); // By sending nulls to ReadAtomLinkElementInFeed(), the method will read and store values for href and rel from the wire (inside of using parameter overrides). AtomLinkMetadata linkMetadata = this.ReadAtomLinkElementInFeed(null, null); AtomMetadataReaderUtils.AddLinkToFeedMetadata(atomFeedMetadata, linkMetadata); }
private void ReadLinkElementIntoLinksCollection(AtomFeedMetadata atomFeedMetadata) { AtomLinkMetadata linkMetadata = this.ReadAtomLinkElementInFeed(null, null); AtomMetadataReaderUtils.AddLinkToFeedMetadata(atomFeedMetadata, linkMetadata); }