109 references to SecurityMode
System.ServiceModel (108)
System\ServiceModel\Channels\PeerHelpers.cs (2)
664SR.GetString(SR.ValueMustBeInRange, SecurityMode.None, SecurityMode.TransportWithMessageCredential)));
System\ServiceModel\Channels\PeerSecurityManager.cs (10)
141if (security.Mode == SecurityMode.Transport || security.Mode == SecurityMode.TransportWithMessageCredential) 153if (security.Mode == SecurityMode.Message || security.Mode == SecurityMode.TransportWithMessageCredential) 872requirement.Properties[SecurityTokenRequirement.PeerAuthenticationMode] = SecurityMode.Message; 874requirement.Properties[SecurityTokenRequirement.PeerAuthenticationMode] = SecurityMode.Transport; 928requirement.Properties[SecurityTokenRequirement.PeerAuthenticationMode] = SecurityMode.Transport; 952requirement.Properties[SecurityTokenRequirement.PeerAuthenticationMode] = SecurityMode.Message; 1008requirement.Properties[SecurityTokenRequirement.PeerAuthenticationMode] = SecurityMode.Transport; 1013requirement.Properties[SecurityTokenRequirement.PeerAuthenticationMode] = SecurityMode.Message;
System\ServiceModel\Configuration\NetTcpSecurityElement.cs (2)
20public SecurityMode Mode 22get { return (SecurityMode)base[ConfigurationStrings.Mode]; }
System\ServiceModel\Configuration\PeerSecurityElement.cs (5)
20public SecurityMode Mode 22get { return (SecurityMode)base[ConfigurationStrings.Mode]; } 39if (security.Mode != SecurityMode.None) 52if (security.Mode != SecurityMode.None) 65if (source.Mode != SecurityMode.None)
System\ServiceModel\Configuration\Properties.cs (6)
2444properties.Add(new ConfigurationProperty("mode", typeof(System.ServiceModel.SecurityMode), System.ServiceModel.SecurityMode.Transport, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.SecurityModeHelper)), System.Configuration.ConfigurationPropertyOptions.None)); 2575properties.Add(new ConfigurationProperty("mode", typeof(System.ServiceModel.SecurityMode), System.ServiceModel.SecurityMode.Transport, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.SecurityModeHelper)), System.Configuration.ConfigurationPropertyOptions.None)); 3844properties.Add(new ConfigurationProperty("mode", typeof(System.ServiceModel.SecurityMode), System.ServiceModel.SecurityMode.Message, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.SecurityModeHelper)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\WSHttpSecurityElement.cs (2)
20public SecurityMode Mode 22get { return (SecurityMode)base[ConfigurationStrings.Mode]; }
System\ServiceModel\Description\MetadataExchangeBindings.cs (2)
160WSHttpBinding binding = new WSHttpBinding(SecurityMode.None, /* reliableSessionEnabled */ false); 169new WSHttpSecurity(SecurityMode.Transport, new HttpTransportSecurity(), new NonDualMessageSecurityOverHttp()), /* reliableSessionEnabled */ false);
System\ServiceModel\NetTcpBinding.cs (12)
24public NetTcpBinding(SecurityMode securityMode) 30public NetTcpBinding(SecurityMode securityMode, bool reliableSessionEnabled) 290SecurityMode mode = security.Mode; 291if (mode == SecurityMode.None) 295else if (mode == SecurityMode.Message) 301if (mode == SecurityMode.TransportWithMessageCredential) 315Fx.Assert((mode == SecurityMode.Transport) || (mode == SecurityMode.TransportWithMessageCredential), "Unexpected SecurityMode value: " + mode); 423static bool SetTransportSecurity(BindingElement transport, SecurityMode mode, TcpTransportSecurity transportSecurity) 430if (this.security.Mode == SecurityMode.Message || this.security.Mode == SecurityMode.TransportWithMessageCredential) 447SecurityMode securityMode = SecurityModeHelper.ToSecurityMode(mode);
System\ServiceModel\NetTcpContextBinding.cs (2)
26public NetTcpContextBinding(SecurityMode securityMode) 42public NetTcpContextBinding(SecurityMode securityMode, bool reliableSessionEnabled)
System\ServiceModel\NetTcpSecurity.cs (15)
13internal const SecurityMode DefaultMode = SecurityMode.Transport; 15SecurityMode mode; 24NetTcpSecurity(SecurityMode mode, TcpTransportSecurity transportSecurity, MessageSecurityOverTcp messageSecurity) 34public SecurityMode Mode 62if (this.mode == SecurityMode.TransportWithMessageCredential) 66else if (this.mode == SecurityMode.Transport) 88internal static bool SetTransportSecurity(BindingElement transport, SecurityMode mode, TcpTransportSecurity transportSecurity) 90if (mode == SecurityMode.TransportWithMessageCredential) 94else if (mode == SecurityMode.Transport) 103if (this.mode == SecurityMode.Message) 107else if (this.mode == SecurityMode.TransportWithMessageCredential) 117internal static bool TryCreate(SecurityBindingElement wsSecurity, SecurityMode mode, bool isReliableSessionEnabled, BindingElement transportSecurity, TcpTransportSecurity tcpTransportSecurity, out NetTcpSecurity security) 121if (mode == SecurityMode.Message) 126else if (mode == SecurityMode.TransportWithMessageCredential)
System\ServiceModel\PeerSecuritySettings.cs (17)
15internal const SecurityMode DefaultMode = SecurityMode.Transport; 17SecurityMode mode; 38public SecurityMode Mode 61return this.Mode == SecurityMode.Transport || this.Mode == SecurityMode.TransportWithMessageCredential; 70if (this.Mode == SecurityMode.Message || this.Mode == SecurityMode.TransportWithMessageCredential) 85this.Mode = SecurityMode.Transport; 91this.Mode = SecurityMode.None; 94this.Mode = SecurityMode.Transport; 97this.Mode = SecurityMode.Message; 100this.Mode = SecurityMode.TransportWithMessageCredential; 114case SecurityMode.None: 117case SecurityMode.Transport: 120case SecurityMode.Message: 123case SecurityMode.TransportWithMessageCredential:
System\ServiceModel\SecurityMode.cs (11)
16internal static bool IsDefined(SecurityMode value) 18return (value == SecurityMode.None || 19value == SecurityMode.Transport || 20value == SecurityMode.Message || 21value == SecurityMode.TransportWithMessageCredential); 24internal static SecurityMode ToSecurityMode(UnifiedSecurityMode value) 29return SecurityMode.None; 31return SecurityMode.Transport; 33return SecurityMode.Message; 35return SecurityMode.TransportWithMessageCredential; 37return (SecurityMode)value;
System\ServiceModel\WS2007HttpBinding.cs (2)
42public WS2007HttpBinding(SecurityMode securityMode) 47public WS2007HttpBinding(SecurityMode securityMode, bool reliableSessionEnabled)
System\ServiceModel\WSHttpBinding.cs (6)
40public WSHttpBinding(SecurityMode securityMode) 45public WSHttpBinding(SecurityMode securityMode, bool reliableSessionEnabled) 100if ((security.Mode == SecurityMode.Transport) && 113if (this.security.Mode == SecurityMode.Transport) 173if (security.Mode == SecurityMode.None || security.Mode == SecurityMode.Message)
System\ServiceModel\WSHttpContextBinding.cs (2)
26public WSHttpContextBinding(SecurityMode securityMode) 42public WSHttpContextBinding(SecurityMode securityMode, bool reliableSessionEnabled)
System\ServiceModel\WSHttpSecurity.cs (12)
12internal const SecurityMode DefaultMode = SecurityMode.Message; 14SecurityMode mode; 23internal WSHttpSecurity(SecurityMode mode, HttpTransportSecurity transportSecurity, NonDualMessageSecurityOverHttp messageSecurity) 37public SecurityMode Mode 78if (this.mode == SecurityMode.TransportWithMessageCredential) 95if (this.mode == SecurityMode.Message || this.mode == SecurityMode.TransportWithMessageCredential) 97return this.messageSecurity.CreateSecurityBindingElement(this.Mode == SecurityMode.TransportWithMessageCredential, isReliableSessionEnabled, version); 109SecurityMode securityMode = SecurityMode.None; 115if (!MessageSecurityOverHttp.TryCreate(sbe, securityMode == SecurityMode.TransportWithMessageCredential, isReliableSessionEnabled, out messageSecurity))
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\Description\WorkflowInstanceManagementBehavior.cs (1)
59Mode = SecurityMode.Message,