19 references to Json
System.ServiceModel.Web (19)
System\ServiceModel\Channels\WebBodyFormatMessageProperty.cs (1)
35
jsonProperty = new WebBodyFormatMessageProperty(WebContentFormat.
Json
);
System\ServiceModel\Channels\WebContentFormatHelper.cs (1)
14
|| format == WebContentFormat.
Json
System\ServiceModel\Channels\WebMessageEncoderFactory.cs (6)
193
case WebContentFormat.
Json
:
222
case WebContentFormat.
Json
:
266
case WebContentFormat.
Json
:
305
case WebContentFormat.
Json
:
406
messageFormat = WebContentFormat.
Json
;
476
case WebContentFormat.
Json
:
System\ServiceModel\Description\WebHttpBehavior.cs (2)
1114
map.Add(WebContentFormat.
Json
, jsonFormatter);
1129
map.Add(WebContentFormat.
Json
, jsonFormatter);
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (1)
431
(bodyFormatProperty.Format != WebContentFormat.
Json
))
System\ServiceModel\Dispatcher\DataContractJsonSerializerOperationFormatter.cs (2)
239
if (formatProperty.Format != WebContentFormat.
Json
)
241
throw System.ServiceModel.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.InvalidHttpMessageFormat3, this.OperationName, formatProperty.Format, WebContentFormat.
Json
)));
System\ServiceModel\Dispatcher\JavascriptCallbackMessageInspector.cs (1)
50
formatProperty.Format == WebContentFormat.
Json
)
System\ServiceModel\Dispatcher\JsonFormatMapping.cs (1)
15
public static readonly WebContentFormat WebContentFormat = WebContentFormat.
Json
;
System\ServiceModel\Dispatcher\SingleBodyParameterDataContractMessageFormatter.cs (2)
175
if (formatProperty.Format != WebContentFormat.
Json
)
177
throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR2.GetString(SR2.InvalidHttpMessageFormat, this.OperationName, this.ContractName, this.ContractNs, formatProperty.Format, WebContentFormat.
Json
)));
System\ServiceModel\Dispatcher\SingleBodyParameterMessageFormatter.cs (2)
63
map.Add(WebContentFormat.
Json
, jsonFormatter);
77
map.Add(WebContentFormat.
Json
, jsonFormatter);