1 write to security
System.ServiceModel.Web (1)
System\ServiceModel\WebHttpBinding.cs (1)
144this.security = value;
11 references to security
System.ServiceModel.Web (11)
System\ServiceModel\WebHttpBinding.cs (11)
36this.security.Mode = securityMode; 139get { return this.security; } 206if ((security.Mode == WebHttpSecurityMode.Transport || 207security.Mode == WebHttpSecurityMode.TransportCredentialOnly) && 208security.Transport.ClientCredentialType == HttpClientCredentialType.InheritedFromHost) 210throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.HttpClientCredentialTypeInvalid, security.Transport.ClientCredentialType))); 248if (security.Mode == WebHttpSecurityMode.Transport) 250security.EnableTransportSecurity(httpsTransportBindingElement); 253else if (security.Mode == WebHttpSecurityMode.TransportCredentialOnly) 255security.EnableTransportAuthentication(httpTransportBindingElement); 261security.DisableTransportAuthentication(httpTransportBindingElement);