17 references to CompareMimeType
System.Data.Services (17)
System\Data\Services\DataService.cs (5)
1661
if (WebUtil.
CompareMimeType
(mime, XmlConstants.MimeApplicationJson))
1665
else if (WebUtil.
CompareMimeType
(mime, XmlConstants.MimeApplicationAtom))
1672
WebUtil.
CompareMimeType
(mime, XmlConstants.MimeApplicationXml) ||
1673
WebUtil.
CompareMimeType
(mime, XmlConstants.MimeApplicationAtomService) ||
1674
WebUtil.
CompareMimeType
(mime, XmlConstants.MimeTextXml),
System\Data\Services\ErrorHandler.cs (1)
254
if (WebUtil.
CompareMimeType
(args.ResponseContentType, XmlConstants.MimeApplicationJson))
System\Data\Services\HttpProcessUtility.cs (3)
185
if (WebUtil.
CompareMimeType
(acceptType.MimeType, exactContentType[i]))
1052
if (WebUtil.
CompareMimeType
(this.type, candidateType))
1061
if (WebUtil.
CompareMimeType
(this.subType, candidateSubType))
System\Data\Services\Serializers\Deserializer.cs (1)
255
if (!WebUtil.
CompareMimeType
(contentType, mimeType))
System\Data\Services\Serializers\SyndicationDeserializer.cs (1)
246
if (!WebUtil.
CompareMimeType
(contentType, XmlConstants.MimeApplicationXml))
System\Data\Services\WebUtil.cs (6)
435
if (WebUtil.
CompareMimeType
(contentType, XmlConstants.MimeApplicationJson))
439
else if (WebUtil.
CompareMimeType
(contentType, XmlConstants.MimeTextXml) ||
440
WebUtil.
CompareMimeType
(contentType, XmlConstants.MimeApplicationXml))
444
else if (WebUtil.
CompareMimeType
(contentType, XmlConstants.MimeApplicationAtom) ||
445
WebUtil.
CompareMimeType
(contentType, XmlConstants.MimeAny))
1610
return WebUtil.
CompareMimeType
(mime, XmlConstants.MimeApplicationAtom);