191 references to Atom10Constants
System.ServiceModel (191)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (138)
22
[XmlRoot(ElementName =
Atom10Constants
.FeedTag, Namespace =
Atom10Constants
.Atom10Namespace)]
28
static readonly XmlQualifiedName Atom10Href = new XmlQualifiedName(
Atom10Constants
.HrefTag, string.Empty);
29
static readonly XmlQualifiedName Atom10Label = new XmlQualifiedName(
Atom10Constants
.LabelTag, string.Empty);
30
static readonly XmlQualifiedName Atom10Length = new XmlQualifiedName(
Atom10Constants
.LengthTag, string.Empty);
31
static readonly XmlQualifiedName Atom10Relative = new XmlQualifiedName(
Atom10Constants
.RelativeTag, string.Empty);
32
static readonly XmlQualifiedName Atom10Scheme = new XmlQualifiedName(
Atom10Constants
.SchemeTag, string.Empty);
33
static readonly XmlQualifiedName Atom10Term = new XmlQualifiedName(
Atom10Constants
.TermTag, string.Empty);
34
static readonly XmlQualifiedName Atom10Title = new XmlQualifiedName(
Atom10Constants
.TitleTag, string.Empty);
35
static readonly XmlQualifiedName Atom10Type = new XmlQualifiedName(
Atom10Constants
.TypeTag, string.Empty);
106
return reader.IsStartElement(
Atom10Constants
.FeedTag,
Atom10Constants
.Atom10Namespace);
157
writer.WriteStartElement(
Atom10Constants
.FeedTag,
Atom10Constants
.Atom10Namespace);
171
if (reader.LocalName ==
Atom10Constants
.TermTag && reader.NamespaceURI == string.Empty)
175
else if (reader.LocalName ==
Atom10Constants
.SchemeTag && reader.NamespaceURI == string.Empty)
179
else if (reader.LocalName ==
Atom10Constants
.LabelTag && reader.NamespaceURI == string.Empty)
250
string type = reader.GetAttribute(
Atom10Constants
.TypeTag);
256
writer.WriteStartElement(
Atom10Constants
.CategoryTag,
Atom10Constants
.Atom10Namespace);
261
writer.WriteAttributeString(
Atom10Constants
.TermTag, categoryName);
265
writer.WriteAttributeString(
Atom10Constants
.LabelTag, category.Label);
269
writer.WriteAttributeString(
Atom10Constants
.SchemeTag, category.Scheme);
282
if (reader.IsStartElement(
Atom10Constants
.AuthorTag,
Atom10Constants
.Atom10Namespace))
286
else if (reader.IsStartElement(
Atom10Constants
.CategoryTag,
Atom10Constants
.Atom10Namespace))
290
else if (reader.IsStartElement(
Atom10Constants
.ContributorTag,
Atom10Constants
.Atom10Namespace))
294
else if (reader.IsStartElement(
Atom10Constants
.GeneratorTag,
Atom10Constants
.Atom10Namespace))
298
else if (reader.IsStartElement(
Atom10Constants
.IdTag,
Atom10Constants
.Atom10Namespace))
302
else if (reader.IsStartElement(
Atom10Constants
.LinkTag,
Atom10Constants
.Atom10Namespace))
306
else if (reader.IsStartElement(
Atom10Constants
.LogoTag,
Atom10Constants
.Atom10Namespace))
310
else if (reader.IsStartElement(
Atom10Constants
.RightsTag,
Atom10Constants
.Atom10Namespace))
314
else if (reader.IsStartElement(
Atom10Constants
.SubtitleTag,
Atom10Constants
.Atom10Namespace))
318
else if (reader.IsStartElement(
Atom10Constants
.TitleTag,
Atom10Constants
.Atom10Namespace))
322
else if (reader.IsStartElement(
Atom10Constants
.UpdatedTag,
Atom10Constants
.Atom10Namespace))
337
if (reader.IsStartElement(
Atom10Constants
.AuthorTag,
Atom10Constants
.Atom10Namespace))
341
else if (reader.IsStartElement(
Atom10Constants
.CategoryTag,
Atom10Constants
.Atom10Namespace))
345
else if (reader.IsStartElement(
Atom10Constants
.ContentTag,
Atom10Constants
.Atom10Namespace))
349
else if (reader.IsStartElement(
Atom10Constants
.ContributorTag,
Atom10Constants
.Atom10Namespace))
353
else if (reader.IsStartElement(
Atom10Constants
.IdTag,
Atom10Constants
.Atom10Namespace))
357
else if (reader.IsStartElement(
Atom10Constants
.LinkTag,
Atom10Constants
.Atom10Namespace))
361
else if (reader.IsStartElement(
Atom10Constants
.PublishedTag,
Atom10Constants
.Atom10Namespace))
367
else if (reader.IsStartElement(
Atom10Constants
.RightsTag,
Atom10Constants
.Atom10Namespace))
371
else if (reader.IsStartElement(
Atom10Constants
.SourceFeedTag,
Atom10Constants
.Atom10Namespace))
377
else if (reader.IsStartElement(
Atom10Constants
.SummaryTag,
Atom10Constants
.Atom10Namespace))
381
else if (reader.IsStartElement(
Atom10Constants
.TitleTag,
Atom10Constants
.Atom10Namespace))
385
else if (reader.IsStartElement(
Atom10Constants
.UpdatedTag,
Atom10Constants
.Atom10Namespace))
402
content.WriteTo(writer, elementName,
Atom10Constants
.Atom10Namespace);
410
writer.WriteElementString(elementName,
Atom10Constants
.Atom10Namespace, value);
419
WritePersonTo(writer, p,
Atom10Constants
.AuthorTag);
428
WritePersonTo(writer, p,
Atom10Constants
.ContributorTag);
440
WriteElement(writer,
Atom10Constants
.UpdatedTag, AsString(lastUpdatedTime));
449
WritePersonTo(writer, p,
Atom10Constants
.AuthorTag);
463
WritePersonTo(writer, p,
Atom10Constants
.ContributorTag);
473
writer.WriteElementString(
Atom10Constants
.UpdatedTag,
474
Atom10Constants
.Atom10Namespace,
480
writer.WriteStartElement(
Atom10Constants
.LinkTag,
Atom10Constants
.Atom10Namespace);
489
writer.WriteAttributeString(
Atom10Constants
.RelativeTag, link.RelationshipType);
493
writer.WriteAttributeString(
Atom10Constants
.TypeTag, link.MediaType);
497
writer.WriteAttributeString(
Atom10Constants
.TitleTag, link.Title);
501
writer.WriteAttributeString(
Atom10Constants
.LengthTag, Convert.ToString(link.Length, CultureInfo.InvariantCulture));
505
writer.WriteAttributeString(
Atom10Constants
.HrefTag, FeedUtils.GetUriString(link.Uri));
545
while (reader.IsStartElement(
Atom10Constants
.EntryTag,
Atom10Constants
.Atom10Namespace))
556
writer.WriteStartElement(
Atom10Constants
.EntryTag,
Atom10Constants
.Atom10Namespace);
578
type =
Atom10Constants
.PlaintextType;
584
case
Atom10Constants
.PlaintextType:
587
case
Atom10Constants
.HtmlType:
590
case
Atom10Constants
.XHtmlType:
602
if (reader.LocalName ==
Atom10Constants
.TypeTag && reader.NamespaceURI == string.Empty)
715
string type = reader.GetAttribute(
Atom10Constants
.TypeTag, string.Empty);
725
type =
Atom10Constants
.PlaintextType;
727
string src = reader.GetAttribute(
Atom10Constants
.SourceTag, string.Empty);
729
if (string.IsNullOrEmpty(src) && type !=
Atom10Constants
.PlaintextType && type !=
Atom10Constants
.HtmlType && type !=
Atom10Constants
.XHtmlType)
742
if (reader.LocalName ==
Atom10Constants
.TypeTag && reader.NamespaceURI == string.Empty)
746
else if (reader.LocalName ==
Atom10Constants
.SourceTag && reader.NamespaceURI == string.Empty)
845
else if (reader.IsStartElement(
Atom10Constants
.EntryTag,
Atom10Constants
.Atom10Namespace) && !isSourceFeed)
1005
else if (reader.LocalName ==
Atom10Constants
.TypeTag && reader.NamespaceURI == string.Empty)
1009
else if (reader.LocalName ==
Atom10Constants
.RelativeTag && reader.NamespaceURI == string.Empty)
1013
else if (reader.LocalName ==
Atom10Constants
.TitleTag && reader.NamespaceURI == string.Empty)
1017
else if (reader.LocalName ==
Atom10Constants
.LengthTag && reader.NamespaceURI == string.Empty)
1021
else if (reader.LocalName ==
Atom10Constants
.HrefTag && reader.NamespaceURI == string.Empty)
1149
if (reader.IsStartElement(
Atom10Constants
.NameTag,
Atom10Constants
.Atom10Namespace))
1153
else if (reader.IsStartElement(
Atom10Constants
.UriTag,
Atom10Constants
.Atom10Namespace))
1157
else if (reader.IsStartElement(
Atom10Constants
.EmailTag,
Atom10Constants
.Atom10Namespace))
1232
WriteContentTo(writer,
Atom10Constants
.TitleTag, title);
1233
WriteContentTo(writer,
Atom10Constants
.SubtitleTag, feed.Description);
1239
WriteElement(writer,
Atom10Constants
.IdTag, id);
1240
WriteContentTo(writer,
Atom10Constants
.RightsTag, feed.Copyright);
1245
WriteElement(writer,
Atom10Constants
.LogoTag, feed.ImageUrl.ToString());
1249
WriteElement(writer,
Atom10Constants
.GeneratorTag, feed.Generator);
1274
WriteElement(dictWriter,
Atom10Constants
.IdTag, id);
1277
WriteContentTo(dictWriter,
Atom10Constants
.TitleTag, title);
1278
WriteContentTo(dictWriter,
Atom10Constants
.SummaryTag, item.Summary);
1281
dictWriter.WriteElementString(
Atom10Constants
.PublishedTag,
1282
Atom10Constants
.Atom10Namespace,
1293
WriteContentTo(dictWriter,
Atom10Constants
.ContentTag, item.Content);
1294
WriteContentTo(dictWriter,
Atom10Constants
.RightsTag, item.Copyright);
1297
dictWriter.WriteStartElement(
Atom10Constants
.SourceFeedTag,
Atom10Constants
.Atom10Namespace);
1306
writer.WriteStartElement(elementName,
Atom10Constants
.Atom10Namespace);
1308
WriteElement(writer,
Atom10Constants
.NameTag, p.Name);
1311
writer.WriteElementString(
Atom10Constants
.UriTag,
Atom10Constants
.Atom10Namespace, p.Uri);
1315
writer.WriteElementString(
Atom10Constants
.EmailTag,
Atom10Constants
.Atom10Namespace, p.Email);
1323
[XmlRoot(ElementName =
Atom10Constants
.FeedTag, Namespace =
Atom10Constants
.Atom10Namespace)]
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (8)
19
[XmlRoot(ElementName =
Atom10Constants
.EntryTag, Namespace =
Atom10Constants
.Atom10Namespace)]
99
return reader.IsStartElement(
Atom10Constants
.EntryTag,
Atom10Constants
.Atom10Namespace);
150
writer.WriteStartElement(
Atom10Constants
.EntryTag,
Atom10Constants
.Atom10Namespace);
179
[XmlRoot(ElementName =
Atom10Constants
.EntryTag, Namespace =
Atom10Constants
.Atom10Namespace)]
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (2)
250
writer.WriteAttributeString(
Atom10Constants
.Atom10Prefix, Atom10FeedFormatter.XmlNsNs,
Atom10Constants
.Atom10Namespace);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (14)
246
else if (reader.LocalName ==
Atom10Constants
.SchemeTag && reader.NamespaceURI == string.Empty)
284
if (reader.IsStartElement(
Atom10Constants
.CategoryTag,
Atom10Constants
.Atom10Namespace))
411
writer.WriteAttributeString(
Atom10Constants
.SchemeTag, categories.Scheme);
495
if (reader.IsStartElement(
Atom10Constants
.TitleTag,
Atom10Constants
.Atom10Namespace))
683
if (reader.IsStartElement(
Atom10Constants
.TitleTag,
Atom10Constants
.Atom10Namespace))
733
collection.Title.WriteTo(writer,
Atom10Constants
.TitleTag,
Atom10Constants
.Atom10Namespace);
750
writer.WriteAttributeString(
Atom10Constants
.Atom10Prefix, Atom10FeedFormatter.XmlNsNs,
Atom10Constants
.Atom10Namespace);
781
workspace.Title.WriteTo(writer,
Atom10Constants
.TitleTag,
Atom10Constants
.Atom10Namespace);
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (11)
483
link.RelationshipType =
Atom10Constants
.AlternateTag;
1089
writer.WriteAttributeString("xmlns",
Atom10Constants
.Atom10Prefix, null,
Atom10Constants
.Atom10Namespace);
1104
if (this.Feed.Links[i].RelationshipType ==
Atom10Constants
.AlternateTag)
1190
this.atomSerializer.WriteElement(writer,
Atom10Constants
.IdTag, this.Feed.Id);
1196
if (this.Feed.Links[i].RelationshipType ==
Atom10Constants
.AlternateTag && isFirstAlternateLink)
1234
if (item.Links[i].RelationshipType ==
Atom10Constants
.AlternateTag)
1322
if (item.SourceFeed.Links[i].RelationshipType ==
Atom10Constants
.SelfTag)
1357
else if (item.Links[i].RelationshipType ==
Atom10Constants
.AlternateTag)
1393
this.atomSerializer.WriteContentTo(writer,
Atom10Constants
.RightsTag, item.Copyright);
1404
this.atomSerializer.WriteContentTo(writer,
Atom10Constants
.ContentTag, item.Content);
System\ServiceModel\Syndication\SyndicationContent.cs (5)
69
return new XmlSyndicationContent(
Atom10Constants
.XmlMediaType, dataContractObject, (DataContractSerializer) null);
74
return new XmlSyndicationContent(
Atom10Constants
.XmlMediaType, dataContractObject, dataContractSerializer);
84
return new XmlSyndicationContent(
Atom10Constants
.XmlMediaType, xmlSerializerObject, serializer);
100
writer.WriteAttributeString(
Atom10Constants
.TypeTag, string.Empty, this.Type);
105
if (key.Name ==
Atom10Constants
.TypeTag && key.Namespace == string.Empty)
System\ServiceModel\Syndication\SyndicationLink.cs (2)
125
return new SyndicationLink(uri,
Atom10Constants
.AlternateTag, null, mediaType, 0);
140
return new SyndicationLink(uri,
Atom10Constants
.SelfTag, null, mediaType, 0);
System\ServiceModel\Syndication\TextSyndicationContent.cs (3)
59
return
Atom10Constants
.HtmlType;
61
return
Atom10Constants
.XHtmlType;
63
return
Atom10Constants
.PlaintextType;
System\ServiceModel\Syndication\UrlSyndicationContent.cs (1)
55
writer.WriteAttributeString(
Atom10Constants
.SourceTag, string.Empty, FeedUtils.GetUriString(this.url));
System\ServiceModel\Syndication\XmlSyndicationContent.cs (7)
38
if (name ==
Atom10Constants
.TypeTag && ns == string.Empty)
49
this.type = string.IsNullOrEmpty(this.type) ?
Atom10Constants
.XmlMediaType : this.type;
61
this.type = string.IsNullOrEmpty(type) ?
Atom10Constants
.XmlMediaType : type;
67
this.type = string.IsNullOrEmpty(type) ?
Atom10Constants
.XmlMediaType : type;
77
this.type = string.IsNullOrEmpty(type) ?
Atom10Constants
.XmlMediaType : type;
201
this.WriteTo(writer,
Atom10Constants
.ContentTag,
Atom10Constants
.Atom10Namespace);