4 instantiations of WebBodyFormatMessageProperty
System.Data.Services (1)
System\Data\Services\DataService.cs (1)
551message.Properties.Add(WebBodyFormatMessageProperty.Name, new WebBodyFormatMessageProperty(WebContentFormat.Raw));
System.ServiceModel.Web (3)
System\ServiceModel\Channels\WebBodyFormatMessageProperty.cs (3)
35jsonProperty = new WebBodyFormatMessageProperty(WebContentFormat.Json); 47xmlProperty = new WebBodyFormatMessageProperty(WebContentFormat.Xml); 59rawProperty = new WebBodyFormatMessageProperty(WebContentFormat.Raw);
82 references to WebBodyFormatMessageProperty
System.Data.Services (1)
System\Data\Services\DataService.cs (1)
551message.Properties.Add(WebBodyFormatMessageProperty.Name, new WebBodyFormatMessageProperty(WebContentFormat.Raw));
System.ServiceModel.Web (81)
System\ServiceModel\Channels\WebBodyFormatMessageProperty.cs (6)
10static WebBodyFormatMessageProperty jsonProperty; 12static WebBodyFormatMessageProperty xmlProperty; 13static WebBodyFormatMessageProperty rawProperty; 29internal static WebBodyFormatMessageProperty JsonProperty 41internal static WebBodyFormatMessageProperty XmlProperty 53internal static WebBodyFormatMessageProperty RawProperty
System\ServiceModel\Channels\WebMessageEncoderFactory.cs (15)
195message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.JsonProperty); 199message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.XmlProperty); 203message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.RawProperty); 224message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.JsonProperty); 228message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.XmlProperty); 232message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.RawProperty); 361message.Properties.TryGetValue(WebBodyFormatMessageProperty.Name, out messageFormatProperty); 367WebBodyFormatMessageProperty typedMessageFormatProperty = messageFormatProperty as WebBodyFormatMessageProperty;
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (7)
427if (fault.Properties.TryGetValue(WebBodyFormatMessageProperty.Name, out bodyFormatPropertyObject)) 429WebBodyFormatMessageProperty bodyFormatProperty = bodyFormatPropertyObject as WebBodyFormatMessageProperty; 433fault.Properties[WebBodyFormatMessageProperty.Name] = WebBodyFormatMessageProperty.JsonProperty; 438fault.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.JsonProperty);
System\ServiceModel\Dispatcher\DataContractJsonSerializerOperationFormatter.cs (5)
115message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.JsonProperty); 233message.Properties.TryGetValue(WebBodyFormatMessageProperty.Name, out prop); 234WebBodyFormatMessageProperty formatProperty = (prop as WebBodyFormatMessageProperty);
System\ServiceModel\Dispatcher\DemultiplexingDispatchMessageFormatter.cs (3)
87message.Properties.TryGetValue(WebBodyFormatMessageProperty.Name, out prop); 88WebBodyFormatMessageProperty formatProperty = prop as WebBodyFormatMessageProperty;
System\ServiceModel\Dispatcher\HttpStreamFormatter.cs (5)
88result.Properties[WebBodyFormatMessageProperty.Name] = WebBodyFormatMessageProperty.RawProperty; 96message.Properties.TryGetValue(WebBodyFormatMessageProperty.Name, out prop); 97WebBodyFormatMessageProperty formatProperty = (prop as WebBodyFormatMessageProperty);
System\ServiceModel\Dispatcher\JavascriptCallbackMessageInspector.cs (3)
46WebBodyFormatMessageProperty formatProperty; 48if (reply.Properties.TryGetValue<WebBodyFormatMessageProperty>(WebBodyFormatMessageProperty.Name, out formatProperty) &&
System\ServiceModel\Dispatcher\SingleBodyParameterDataContractMessageFormatter.cs (5)
103message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.JsonProperty); 169message.Properties.TryGetValue(WebBodyFormatMessageProperty.Name, out prop); 170WebBodyFormatMessageProperty formatProperty = (prop as WebBodyFormatMessageProperty);
System\ServiceModel\Dispatcher\SingleBodyParameterMessageFormatter.cs (2)
333reply.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.JsonProperty);
System\ServiceModel\Dispatcher\WebErrorHandler.cs (4)
101fault.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.JsonProperty); 150response.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.RawProperty);
System\ServiceModel\Web\WebOperationContext.cs (26)
107message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.JsonProperty); 125message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.XmlProperty); 137message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.XmlProperty); 158message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.XmlProperty); 171message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.XmlProperty); 183message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.XmlProperty); 195message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.XmlProperty); 207message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.XmlProperty); 248message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.RawProperty); 285message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.RawProperty); 301message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.RawProperty); 318message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.RawProperty); 334message.Properties.Add(WebBodyFormatMessageProperty.Name, WebBodyFormatMessageProperty.RawProperty);