50 references to Feed
System.Data.Services (2)
System\Data\Services\Serializers\SyndicationDeserializer.cs (2)
150
Debug.Assert(formatter.
Feed
!= null, "formatter.Feed != null");
151
return formatter.
Feed
;
System.ServiceModel (48)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (3)
779
ReadFeedFrom(reader, this.
Feed
, false);
1205
if (this.
Feed
== null)
1209
WriteFeedTo(writer, this.
Feed
, false); // isSourceFeed
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (43)
77
this.atomSerializer = new Atom10FeedFormatter(this.
Feed
);
178
this.atomSerializer.SetFeed(this.
Feed
);
566
ReadXml(reader, this.
Feed
);
1083
if (this.
Feed
== null)
1093
if (this.
Feed
.BaseUri != null)
1095
writer.WriteAttributeString("xml", "base", Atom10FeedFormatter.XmlNs, FeedUtils.GetUriString(this.
Feed
.BaseUri));
1097
WriteAttributeExtensions(writer, this.
Feed
, this.Version);
1098
string title = this.
Feed
.Title != null ? this.
Feed
.Title.Text : string.Empty;
1102
for (int i = 0; i < this.
Feed
.Links.Count; ++i)
1104
if (this.
Feed
.Links[i].RelationshipType == Atom10Constants.AlternateTag)
1106
alternateLink = this.
Feed
.Links[i];
1107
WriteAlternateLink(writer, alternateLink, this.
Feed
.BaseUri);
1112
string description = this.
Feed
.Description != null ? this.
Feed
.Description.Text : string.Empty;
1115
if (this.
Feed
.Language != null)
1117
writer.WriteElementString(Rss20Constants.LanguageTag, this.
Feed
.Language);
1120
if (this.
Feed
.Copyright != null)
1122
writer.WriteElementString(Rss20Constants.CopyrightTag, Rss20Constants.Rss20Namespace, this.
Feed
.Copyright.Text);
1128
if ((this.
Feed
.Authors.Count == 1) && (this.
Feed
.Authors[0].Email != null))
1131
WritePerson(writer, Rss20Constants.ManagingEditorTag, this.
Feed
.Authors[0]);
1137
this.atomSerializer.WriteFeedAuthorsTo(writer, this.
Feed
.Authors);
1145
if (this.
Feed
.LastUpdatedTime > DateTimeOffset.MinValue)
1148
writer.WriteString(AsString(this.
Feed
.LastUpdatedTime));
1153
for (int i = 0; i < this.
Feed
.Categories.Count; ++i)
1156
WriteCategory(writer, this.
Feed
.Categories[i]);
1159
if (!string.IsNullOrEmpty(this.
Feed
.Generator))
1161
writer.WriteElementString(Rss20Constants.GeneratorTag, this.
Feed
.Generator);
1165
if (this.
Feed
.Contributors.Count > 0)
1170
this.atomSerializer.WriteFeedContributorsTo(writer, this.
Feed
.Contributors);
1178
if (this.
Feed
.ImageUrl != null)
1181
writer.WriteElementString(Rss20Constants.UrlTag, FeedUtils.GetUriString(this.
Feed
.ImageUrl));
1190
this.atomSerializer.WriteElement(writer, Atom10Constants.IdTag, this.
Feed
.Id);
1194
for (int i = 0; i < this.
Feed
.Links.Count; ++i)
1196
if (this.
Feed
.Links[i].RelationshipType == Atom10Constants.AlternateTag && isFirstAlternateLink)
1201
this.atomSerializer.WriteLink(writer, this.
Feed
.Links[i], this.
Feed
.BaseUri);
1206
if (this.
Feed
.Id != null)
1210
if (this.
Feed
.Links.Count > 1)
1216
WriteElementExtensions(writer, this.
Feed
, this.Version);
1217
WriteItems(writer, this.
Feed
.Items, this.
Feed
.BaseUri);
System\ServiceModel\Syndication\SyndicationFeed.cs (2)
272
return atomSerializer.
Feed
as TSyndicationFeed;
278
return rssSerializer.
Feed
as TSyndicationFeed;