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