コード例 #1
0
ファイル: NetTcpSecurity.cs プロジェクト: imcarolwang/CoreWCF
        NetTcpSecurity(SecurityMode mode, TcpTransportSecurity transportSecurity)
        {
            Fx.Assert(SecurityModeHelper.IsDefined(mode), string.Format("Invalid SecurityMode value: {0}.", mode.ToString()));

            this.mode = mode;
            this.transportSecurity = transportSecurity == null ? new TcpTransportSecurity() : transportSecurity;
        }
コード例 #2
0
ファイル: NetTcpSecurity.cs プロジェクト: wpenbert/CoreWCF
        private NetTcpSecurity(SecurityMode mode, TcpTransportSecurity transportSecurity)
        {
            Fx.Assert(SecurityModeHelper.IsDefined(mode), string.Format("Invalid SecurityMode value: {0}.", mode.ToString()));

            _mode     = mode;
            Transport = transportSecurity ?? new TcpTransportSecurity();
        }