public static XElement ReadAsXElement(this HttpContent content)
 {
     using (var reader = XmlContentExtensions.ReadAsXmlReader(content))
     {
         var e = XElement.Load(reader);
         return(e);
     }
 }
 public static TSyndicationFeed ReadAsSyndicationFeed <TSyndicationFeed>(this HttpContent content) where TSyndicationFeed : SyndicationFeed, new()
 {
     return(SyndicationFeed.Load <TSyndicationFeed>(XmlContentExtensions.ReadAsXmlReader(content, SyndicationFeedReaderSettings)));
 }
 public static TServiceDocument ReadAsServiceDocument <TServiceDocument>(this HttpContent content) where TServiceDocument : ServiceDocument, new()
 {
     return(ServiceDocument.Load <TServiceDocument>(XmlContentExtensions.ReadAsXmlReader(content, SyndicationFeedReaderSettings)));
 }
 public static SyndicationFeed ReadAsSyndicationFeed(this HttpContent content)
 {
     return(SyndicationFeed.Load(XmlContentExtensions.ReadAsXmlReader(content, SyndicationFeedReaderSettings)));
 }
 public static ServiceDocument ReadAsServiceDocument(this HttpContent content)
 {
     return(ServiceDocument.Load(XmlContentExtensions.ReadAsXmlReader(content, SyndicationFeedReaderSettings)));
 }