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