4 instantiations of WebHttpBinding
System.ServiceModel.Web (4)
System\ServiceModel\Configuration\WebHttpBindingCollectionElement.cs (1)
16return new WebHttpBinding();
System\ServiceModel\Description\WebServiceEndpoint.cs (1)
17: base(contract, new WebHttpBinding(), address)
System\ServiceModel\Web\WebChannelFactory.cs (2)
91return new WebHttpBinding(); 95WebHttpBinding result = new WebHttpBinding();
30 references to WebHttpBinding
System.ServiceModel.Web (30)
System\ServiceModel\Configuration\WebHttpBindingCollectionElement.cs (2)
11public partial class WebHttpBindingCollectionElement : StandardBindingCollectionElement<WebHttpBinding, WebHttpBindingElement> 25return (WebHttpBindingCollectionElement)bindings[WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName];
System\ServiceModel\Configuration\WebHttpBindingElement.cs (5)
151get { return typeof(WebHttpBinding); } 184WebHttpBinding webBinding = (WebHttpBinding)binding; 237WebHttpBinding webBinding = (WebHttpBinding)binding;
System\ServiceModel\Configuration\WebHttpEndpointElement.cs (6)
183channelEndpointElement.Binding = WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName; 185else if (!string.Equals(channelEndpointElement.Binding, WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName, StringComparison.Ordinal)) 187throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR2.GetString(SR2.WebEndpointRequiredBinding, typeof(WebHttpEndpoint).Name, WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName))); 195serviceEndpointElement.Binding = WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName; 197else if (!string.Equals(serviceEndpointElement.Binding, WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName, StringComparison.Ordinal)) 199throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR2.GetString(SR2.WebEndpointRequiredBinding, typeof(WebHttpEndpoint).Name, WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName)));
System\ServiceModel\Configuration\WebScriptEndpointElement.cs (6)
150channelEndpointElement.Binding = WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName; 152else if (!string.Equals(channelEndpointElement.Binding, WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName, StringComparison.Ordinal)) 154throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR2.GetString(SR2.WebEndpointRequiredBinding, typeof(WebScriptEndpoint).Name, WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName))); 162serviceEndpointElement.Binding = WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName; 164else if (!string.Equals(serviceEndpointElement.Binding, WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName, StringComparison.Ordinal)) 166throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR2.GetString(SR2.WebEndpointRequiredBinding, typeof(WebScriptEndpoint).Name, WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName)));
System\ServiceModel\Description\WebServiceEndpoint.cs (4)
84WebHttpBinding webHttpBinding 88WebHttpBinding webHttpBinding = this.Binding as WebHttpBinding; 91throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.WebHttpBindingNotFoundWithEndpoint, WebEndpointType.Name, typeof(WebHttpBinding).Name)));
System\ServiceModel\Web\WebChannelFactory.cs (1)
95WebHttpBinding result = new WebHttpBinding();
System\ServiceModel\Web\WebServiceHost.cs (6)
21static readonly Type WebHttpBindingType = typeof(WebHttpBinding); 126string.Equals(protocolMappingItem.Binding, WebHttpBinding.WebHttpBindingConfigurationStrings.WebHttpBindingCollectionElementName, StringComparison.Ordinal)) 136WebHttpBinding binding = automaticEndpoint.Binding as WebHttpBinding; 348WebHttpBinding whb = serviceEndpoint.Binding as WebHttpBinding;