using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Channels;
using System.ServiceModel.Syndication;
namespace dasBlog.Storage{
internal sealed class SyndicationFeedBodyWriter : BodyWriter
{
SyndicationFeedFormatter<SyndicationFeed> _feed;
public SyndicationFeedBodyWriter(SyndicationFeedFormatter<SyndicationFeed> feed)
: base(false)
{
_feed = feed;
}
protected override void OnWriteBodyContents(System.Xml.XmlDictionaryWriter writer)
{
_feed.WriteTo(writer);
}
}
}
|