protected XmlFeedWriter(XmlWriter writer, ISyndicationFeedFormatter formatter)
 {
     _writer   = writer ?? throw new ArgumentNullException(nameof(writer));
     Formatter = formatter ?? throw new ArgumentNullException(nameof(formatter));
 }
Esempio n. 2
0
 public AtomFeedWriter(XmlWriter writer, IEnumerable <ISyndicationAttribute> attributes, ISyndicationFeedFormatter formatter) :
     this(writer, formatter, EnsureXmlNs(attributes ?? Enumerable.Empty <ISyndicationAttribute>()))
 {
 }
Esempio n. 3
0
 private AtomFeedWriter(XmlWriter writer, ISyndicationFeedFormatter formatter, IEnumerable <ISyndicationAttribute> attributes) :
     base(writer, formatter ?? new AtomFormatter(attributes, writer.Settings))
 {
     _writer     = writer;
     _attributes = attributes;
 }
 public RssFeedWriter(XmlWriter writer, IEnumerable <ISyndicationAttribute> attributes, ISyndicationFeedFormatter formatter) :
     base(writer, formatter ?? new RssFormatter(attributes, writer.Settings))
 {
     _writer     = writer;
     _attributes = attributes;
 }