Exemplo n.º 1
0
 public override Task WriteToStreamAsync(Type type, object value, Stream writeStream, HttpContent content, TransportContext transportContext)
 {
     return(Task.Factory.StartNew(() =>
     {
         FeedFormatter.Write(value as SyndicationFeed, writeStream, content.Headers.ContentType.MediaType);
     }));
 }
Exemplo n.º 2
0
 internal static void WriteRss(SyndicationFeed feed, Stream stream)
 {
     FeedFormatter.Write(feed.SaveAsRss20, stream);
 }
Exemplo n.º 3
0
 internal static void WriteAtom(SyndicationFeed feed, Stream stream)
 {
     FeedFormatter.Write(feed.SaveAsAtom10, stream);
 }