protected XmlFeedWriter(XmlWriter writer, ISyndicationFeedFormatter formatter) { _writer = writer ?? throw new ArgumentNullException(nameof(writer)); Formatter = formatter ?? throw new ArgumentNullException(nameof(formatter)); }
public AtomFeedWriter(XmlWriter writer, IEnumerable <ISyndicationAttribute> attributes, ISyndicationFeedFormatter formatter) : this(writer, formatter, EnsureXmlNs(attributes ?? Enumerable.Empty <ISyndicationAttribute>())) { }
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; }