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