90 references to WebMessageFormat
System.ServiceModel.Web (90)
System\ServiceModel\Configuration\WebHttpElement.cs (4)
37
public
WebMessageFormat
DefaultOutgoingResponseFormat
39
get { return (
WebMessageFormat
)base[WebConfigurationStrings.DefaultOutgoingResponseFormat]; }
66
properties.Add(new ConfigurationProperty(WebConfigurationStrings.DefaultOutgoingResponseFormat, typeof(System.ServiceModel.Web.
WebMessageFormat
), System.ServiceModel.Web.
WebMessageFormat
.Xml, null, new System.ServiceModel.Configuration.InternalEnumValidator(typeof(System.ServiceModel.Web.WebMessageFormatHelper)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\WebHttpEndpointElement.cs (5)
125
[ConfigurationProperty(WebConfigurationStrings.DefaultOutgoingResponseFormat, DefaultValue =
WebMessageFormat
.Xml)]
127
public
WebMessageFormat
DefaultOutgoingResponseFormat
129
get { return (
WebMessageFormat
)base[WebConfigurationStrings.DefaultOutgoingResponseFormat]; }
164
properties.Add(new ConfigurationProperty(WebConfigurationStrings.DefaultOutgoingResponseFormat, typeof(System.ServiceModel.Web.
WebMessageFormat
), System.ServiceModel.Web.
WebMessageFormat
.Xml, null, new System.ServiceModel.Configuration.InternalEnumValidator(typeof(System.ServiceModel.Web.WebMessageFormatHelper)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Description\WebHttpBehavior.cs (21)
29
WebMessageFormat
defaultOutgoingReplyFormat;
30
WebMessageFormat
defaultOutgoingRequestFormat;
36
defaultOutgoingRequestFormat =
WebMessageFormat
.Xml;
37
defaultOutgoingReplyFormat =
WebMessageFormat
.Xml;
57
public virtual
WebMessageFormat
DefaultOutgoingRequestFormat
73
public virtual
WebMessageFormat
DefaultOutgoingResponseFormat
267
replyDispatchAsMultiplexing.DefaultContentTypes.Add(
WebMessageFormat
.Xml, xmlContentType);
268
replyDispatchAsMultiplexing.DefaultContentTypes.Add(
WebMessageFormat
.Json, jsonContentType);
591
internal virtual bool UseBareReplyFormatter(WebMessageBodyStyle style, OperationDescription operationDescription,
WebMessageFormat
responseFormat, out Type parameterType)
604
WebMessageFormat
responseFormat = GetResponseFormat(operationDescription);
608
bool useJson = (responseFormat ==
WebMessageFormat
.Json || SupportsJsonFormat(operationDescription));
625
Dictionary<
WebMessageFormat
, IDispatchMessageFormatter> formatters = new Dictionary<
WebMessageFormat
, IDispatchMessageFormatter>();
629
formatters.Add(
WebMessageFormat
.Xml, SingleBodyParameterMessageFormatter.CreateDispatchFormatter(operationDescription, parameterType, false, false, this.xmlSerializerManager, null));
632
formatters.Add(
WebMessageFormat
.Json, SingleBodyParameterMessageFormatter.CreateDispatchFormatter(operationDescription, parameterType, false, true, this.xmlSerializerManager, this.JavascriptCallbackParameterName));
639
formatters.Add(
WebMessageFormat
.Xml, GetDefaultDispatchFormatter(operationDescription, false, !IsBareResponse(style)));
642
formatters.Add(
WebMessageFormat
.Json, GetDefaultDispatchFormatter(operationDescription, true, !IsBareResponse(style)));
654
WebMessageFormat
requestFormat = GetRequestFormat(operationDescription);
655
bool useJson = (requestFormat ==
WebMessageFormat
.Json);
1133
internal
WebMessageFormat
GetRequestFormat(OperationDescription od)
1152
internal
WebMessageFormat
GetResponseFormat(OperationDescription od)
System\ServiceModel\Description\WebHttpEndpoint.cs (1)
34
public
WebMessageFormat
DefaultOutgoingResponseFormat
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (8)
25
static readonly
WebMessageFormat
webScriptDefaultMessageFormat =
WebMessageFormat
.Json;
27
WebMessageFormat
requestMessageFormat = webScriptDefaultMessageFormat;
28
WebMessageFormat
responseMessageFormat = webScriptDefaultMessageFormat;
49
public override
WebMessageFormat
DefaultOutgoingRequestFormat
65
public override
WebMessageFormat
DefaultOutgoingResponseFormat
213
internal override bool UseBareReplyFormatter(WebMessageBodyStyle style, OperationDescription operationDescription,
WebMessageFormat
responseFormat, out Type parameterType)
215
if (responseFormat ==
WebMessageFormat
.Json)
System\ServiceModel\Dispatcher\FormatSelectingMessageInspector.cs (6)
138
WebMessageFormat
format = mapping.MessageFormat;
186
WebMessageFormat
format = this.formatters[operationName].DefaultFormat;
201
void SetFormatAndContentType(
WebMessageFormat
format, string contentType)
215
WebMessageFormat
format;
218
public FormatContentTypePair(
WebMessageFormat
format, string contentType)
224
public
WebMessageFormat
Format
System\ServiceModel\Dispatcher\HelpPage.cs (7)
321
this.FormatString =
WebMessageFormat
.Xml.ToString();
326
this.FormatString =
WebMessageFormat
.Xml.ToString();
331
this.FormatString =
WebMessageFormat
.Xml.ToString();
336
this.FormatString =
WebMessageFormat
.Xml.ToString();
341
this.FormatString =
WebMessageFormat
.Xml.ToString();
346
this.FormatString =
WebMessageFormat
.Xml.ToString();
351
this.FormatString =
WebMessageFormat
.Xml.ToString();
System\ServiceModel\Dispatcher\JsonFormatMapping.cs (2)
30
public override
WebMessageFormat
MessageFormat
32
get { return
WebMessageFormat
.Json; }
System\ServiceModel\Dispatcher\MultiplexingDispatchMessageFormatter.cs (13)
18
Dictionary<
WebMessageFormat
, IDispatchMessageFormatter> formatters;
19
WebMessageFormat
defaultFormat;
20
Dictionary<
WebMessageFormat
, string> defaultContentTypes;
22
public
WebMessageFormat
DefaultFormat
27
public Dictionary<
WebMessageFormat
, string> DefaultContentTypes
35
public MultiplexingDispatchMessageFormatter(Dictionary<
WebMessageFormat
, IDispatchMessageFormatter> formatters,
WebMessageFormat
defaultFormat)
43
this.defaultContentTypes = new Dictionary<
WebMessageFormat
, string>();
62
WebMessageFormat
format = this.defaultFormat;
65
WebMessageFormat
? nullableFormat = outgoingResponse.Format;
93
if (!string.Equals(automatedSelectionContentType, defaultContentTypes[
WebMessageFormat
.Xml], StringComparison.OrdinalIgnoreCase))
101
if (format !=
WebMessageFormat
.Xml)
113
public bool SupportsMessageFormat(
WebMessageFormat
format)
System\ServiceModel\Dispatcher\MultiplexingFormatMapping.cs (1)
17
abstract public
WebMessageFormat
MessageFormat { get; }
System\ServiceModel\Dispatcher\WebErrorHandler.cs (7)
66
if (isXmlSerializerFaultFormat && WebOperationContext.Current.OutgoingResponse.Format ==
WebMessageFormat
.Json)
70
WebMessageFormat
? nullableFormat = !isXmlSerializerFaultFormat ? context.OutgoingResponse.Format :
WebMessageFormat
.Xml;
71
WebMessageFormat
format = nullableFormat.HasValue ? nullableFormat.Value : this.webHttpBehavior.GetResponseFormat(description);
76
case
WebMessageFormat
.Json:
79
case
WebMessageFormat
.Xml:
99
if (format ==
WebMessageFormat
.Json)
System\ServiceModel\Dispatcher\XmlFormatMapping.cs (2)
29
public override
WebMessageFormat
MessageFormat
31
get { return
WebMessageFormat
.Xml; }
System\ServiceModel\Web\OutgoingWebResponseContext.cs (2)
103
public
WebMessageFormat
? Format
111
return operationContext.OutgoingMessageProperties[WebResponseFormatPropertyName] as
WebMessageFormat
?;
System\ServiceModel\Web\WebGetAttribute.cs (4)
22
WebMessageFormat
requestMessageFormat;
23
WebMessageFormat
responseMessageFormat;
58
public
WebMessageFormat
RequestFormat
76
public
WebMessageFormat
ResponseFormat
System\ServiceModel\Web\WebInvokeAttribute.cs (4)
22
WebMessageFormat
requestMessageFormat;
23
WebMessageFormat
responseMessageFormat;
61
public
WebMessageFormat
RequestFormat
79
public
WebMessageFormat
ResponseFormat
System\ServiceModel\Web\WebMessageFormatHelper.cs (3)
9
internal static bool IsDefined(
WebMessageFormat
format)
11
return (format ==
WebMessageFormat
.Xml || format ==
WebMessageFormat
.Json);