internal void WriteFeedNextPageLink(ODataFeed feed)
 {
     Uri nextPageLink = feed.NextPageLink;
     if (nextPageLink != null)
     {
         AtomFeedMetadata annotation = feed.GetAnnotation<AtomFeedMetadata>();
         AtomLinkMetadata linkMetadata = ODataAtomWriterMetadataUtils.MergeLinkMetadata((annotation == null) ? null : annotation.NextPageLink, "next", nextPageLink, null, null);
         this.atomFeedMetadataSerializer.WriteAtomLink(linkMetadata, null);
     }
 }
 internal void WriteFeedMetadata(ODataFeed feed, string updatedTime, out bool authorWritten)
 {
     AtomFeedMetadata annotation = feed.GetAnnotation<AtomFeedMetadata>();
     if (annotation == null)
     {
         base.WriteElementWithTextContent("", "id", "http://www.w3.org/2005/Atom", feed.Id);
         base.WriteEmptyElement("", "title", "http://www.w3.org/2005/Atom");
         base.WriteElementWithTextContent("", "updated", "http://www.w3.org/2005/Atom", updatedTime);
         authorWritten = false;
     }
     else
     {
         this.atomFeedMetadataSerializer.WriteFeedMetadata(annotation, feed, updatedTime, out authorWritten);
     }
 }
예제 #3
0
 public static MaterializerFeed GetFeed(ODataFeed feed)
 {
     return new MaterializerFeed(feed, feed.GetAnnotation<IEnumerable<ODataEntry>>());
 }