FrameworkFork\System.ServiceModel\System\ServiceModel\NetTcpSecurity.cs (17)
14internal const SecurityMode DefaultMode = SecurityMode.Transport;
16private SecurityMode _mode;
25private NetTcpSecurity(SecurityMode mode, TcpTransportSecurity transportSecurity, MessageSecurityOverTcp messageSecurity)
31(int)SecurityMode.Transport,
32SecurityMode.Transport.ToString()));
40public SecurityMode Mode
68if (_mode == SecurityMode.TransportWithMessageCredential)
72else if (_mode == SecurityMode.Transport)
94internal static bool SetTransportSecurity(BindingElement transport, SecurityMode mode, TcpTransportSecurity transportSecurity)
96if (mode == SecurityMode.TransportWithMessageCredential)
100else if (mode == SecurityMode.Transport)
109if (_mode == SecurityMode.Message)
113else if (_mode == SecurityMode.TransportWithMessageCredential)
123internal static bool TryCreate(SecurityBindingElement wsSecurity, SecurityMode mode, bool isReliableSessionEnabled, BindingElement transportSecurity, TcpTransportSecurity tcpTransportSecurity, out NetTcpSecurity security)
127if (mode == SecurityMode.Message)
132else if (mode == SecurityMode.TransportWithMessageCredential)