1 type derived from WebHttpBehavior
System.ServiceModel.Web (1)
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (1)
21
public sealed class WebScriptEnablingBehavior :
WebHttpBehavior
4 instantiations of WebHttpBehavior
System.ServiceModel.Web (4)
System\ServiceModel\Configuration\WebHttpElement.cs (1)
83
return new
WebHttpBehavior
()
System\ServiceModel\Description\WebHttpEndpoint.cs (1)
25
this.Behaviors.Add(new
WebHttpBehavior
());
System\ServiceModel\Web\WebChannelFactory.cs (1)
78
this.Endpoint.Behaviors.Add(new
WebHttpBehavior
());
System\ServiceModel\Web\WebServiceHost.cs (1)
236
serviceEndpoint.Behaviors.Add(new
WebHttpBehavior
());
57 references to WebHttpBehavior
System.ServiceModel.Web (57)
System\ServiceModel\Configuration\WebHttpElement.cs (1)
78
get { return typeof(
WebHttpBehavior
); }
System\ServiceModel\Description\WebHttpEndpoint.cs (4)
52
WebHttpBehavior
WebHttpBehavior
56
WebHttpBehavior
webHttpBehavior = this.Behaviors.Find<
WebHttpBehavior
>();
59
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.WebBehaviorNotFoundWithEndpoint, typeof(WebHttpEndpoint).Name, typeof(
WebHttpBehavior
).Name)));
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (3)
163
string method =
WebHttpBehavior
.GetWebMethod(operation);
164
if (method !=
WebHttpBehavior
.GET
165
&& method !=
WebHttpBehavior
.POST)
System\ServiceModel\Dispatcher\DataContractJsonSerializerOperationFormatter.cs (3)
255
bool isJsonp =
WebHttpBehavior
.TrySetupJavascriptCallback(callbackParameterName) != null;
579
bool useAspNetJsonWrapper =
WebHttpBehavior
.TrySetupJavascriptCallback(callbackParameterName) == null && useAspNetAjaxJson;
663
if (
WebHttpBehavior
.TrySetupJavascriptCallback(callbackParameterName) != null)
System\ServiceModel\Dispatcher\FormatSelectingMessageInspector.cs (1)
32
public FormatSelectingMessageInspector(
WebHttpBehavior
webHttpBehavior, List<MultiplexingFormatMapping> mappings)
System\ServiceModel\Dispatcher\HelpPage.cs (11)
38
public HelpPage(
WebHttpBehavior
behavior, ContractDescription description)
133
WebHttpBehavior
behavior;
137
internal OperationHelpInformation(
WebHttpBehavior
behavior, OperationDescription od)
163
return
WebHttpBehavior
.GetWebMethod(od);
171
return
WebHttpBehavior
.GetDescription(od);
179
if (this.Response.SupportsJson && this.Method ==
WebHttpBehavior
.GET)
223
if (
WebHttpBehavior
.IsUntypedMessage(od.Messages[1]))
227
else if (
WebHttpBehavior
.IsTypedMessage(od.Messages[1]))
248
else if (
WebHttpBehavior
.IsUntypedMessage(od.Messages[0]))
252
else if (
WebHttpBehavior
.IsTypedMessage(od.Messages[0]))
295
this.SupportsJson =
WebHttpBehavior
.SupportsJsonFormat(od);
System\ServiceModel\Dispatcher\JavascriptCallbackMessageInspector.cs (1)
55
javascriptCallbackResponseMessageProperty =
WebHttpBehavior
.TrySetupJavascriptCallback(this.CallbackParameterName);
System\ServiceModel\Dispatcher\SingleBodyParameterMessageFormatter.cs (3)
56
if (!
WebHttpBehavior
.SupportsJsonFormat(operation))
70
if (!
WebHttpBehavior
.SupportsJsonFormat(operation))
331
if (useJson &&
WebHttpBehavior
.TrySetupJavascriptCallback(callbackParameterName) != null)
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (8)
46
this.method =
WebHttpBehavior
.GetWebMethod(operationDescription);
47
isGet = this.method ==
WebHttpBehavior
.GET;
92
if (this.method !=
WebHttpBehavior
.WildcardMethod && WebOperationContext.Current.OutgoingRequest.Method != null)
113
if (this.method !=
WebHttpBehavior
.WildcardMethod)
123
string utString =
WebHttpBehavior
.GetWebUriTemplate(operationDescription);
124
if (utString == null &&
WebHttpBehavior
.GetWebMethod(operationDescription) ==
WebHttpBehavior
.GET)
207
if (!
WebHttpBehavior
.IsUntypedMessage(od.Messages[0]))
System\ServiceModel\Dispatcher\WebErrorHandler.cs (3)
23
WebHttpBehavior
webHttpBehavior;
27
public WebErrorHandler(
WebHttpBehavior
webHttpBehavior, ContractDescription contractDescription, bool includeExceptionDetailInFaults)
65
bool isXmlSerializerFaultFormat =
WebHttpBehavior
.IsXmlSerializerFaultFormat(description);
System\ServiceModel\Dispatcher\WebHttpDispatchOperationSelector.cs (8)
56
WebHttpBehavior
webHttpBehavior = endpoint.Behaviors.Find<
WebHttpBehavior
>();
71
string method =
WebHttpBehavior
.GetWebMethod(od);
76
if (UriTemplateHelpers.IsWildcardPath(path) && (method ==
WebHttpBehavior
.WildcardMethod))
122
if (!methodSpecificTables.TryGetValue(
WebHttpBehavior
.WildcardMethod, out wildcardTable))
216
if (method ==
WebHttpBehavior
.GET)
221
new WebHttpDispatchOperationSelectorData() { AllowedMethods = new List<string>() {
WebHttpBehavior
.GET } });
261
if (pair.Key == method || pair.Key ==
WebHttpBehavior
.WildcardMethod)
System\ServiceModel\Web\WebChannelFactory.cs (1)
76
if (this.Endpoint.Behaviors.Find<
WebHttpBehavior
>() == null)
System\ServiceModel\Web\WebOperationContext.cs (1)
29
internal static readonly string DefaultStreamMediaType =
WebHttpBehavior
.defaultStreamContentType;
System\ServiceModel\Web\WebServiceHost.cs (7)
231
if (serviceEndpoint.Behaviors.Find<
WebHttpBehavior
>() == null)
234
if (serviceEndpoint.Behaviors.Find<
WebHttpBehavior
>() == null)
269
WebHttpBehavior
.HideRequestUriTemplateParameters(operation, throwAway, delegate()
285
if (
WebHttpBehavior
.IsTypedMessage(message) ||
WebHttpBehavior
.IsUntypedMessage(message))
315
if (
WebHttpBehavior
.IsTypedMessage(message) ||
WebHttpBehavior
.IsUntypedMessage(message))
System\ServiceModel\WebScriptServiceHost.cs (2)
35
if (endpoint.Behaviors.Find<
WebHttpBehavior
>() == null)
38
if (endpoint.Behaviors.Find<
WebHttpBehavior
>() == null)