11 references to MimeApplicationJson
System.Data.Services (11)
System\Data\Services\DataService.cs (4)
620
XmlConstants.
MimeApplicationJson
629
XmlConstants.
MimeApplicationJson
1285
exactContentType = new string[] { XmlConstants.MimeApplicationAtomService, XmlConstants.
MimeApplicationJson
, XmlConstants.MimeApplicationXml };
1661
if (WebUtil.CompareMimeType(mime, XmlConstants.
MimeApplicationJson
))
System\Data\Services\ErrorHandler.cs (2)
254
if (WebUtil.CompareMimeType(args.ResponseContentType, XmlConstants.
MimeApplicationJson
))
395
string[] availableTypes = new string[] { XmlConstants.MimeApplicationXml, XmlConstants.
MimeApplicationJson
};
System\Data\Services\ResponseBodyWriter.cs (1)
217
string contentType = (this.responseFormat == ContentFormat.Json) ? XmlConstants.
MimeApplicationJson
: XmlConstants.MimeApplicationXml;
System\Data\Services\WebUtil.cs (4)
435
if (WebUtil.CompareMimeType(contentType, XmlConstants.
MimeApplicationJson
))
460
Strings.BadRequest_InvalidContentTypeForRequestUri(contentType, String.Format(CultureInfo.InvariantCulture, "'{0}', '{1}', '{2}'", XmlConstants.
MimeApplicationJson
, XmlConstants.MimeApplicationXml, XmlConstants.MimeTextXml)));
472
Strings.BadRequest_InvalidContentTypeForRequestUri(contentType, String.Format(CultureInfo.InvariantCulture, "'{0}', '{1}', '{2}'", XmlConstants.
MimeApplicationJson
, XmlConstants.MimeApplicationAtom, XmlConstants.MimeAny)));
481
Strings.BadRequest_InvalidContentTypeForRequestUri(contentType, String.Format(CultureInfo.InvariantCulture, "'{0}', '{1}', '{2}'", XmlConstants.
MimeApplicationJson
, XmlConstants.MimeApplicationXml, XmlConstants.MimeTextXml)));